[Zope3-Users] Unknown directive: class !!!

Chetan Kumar chetan.mlist at gmail.com
Sat Apr 4 08:59:09 EDT 2009


Hi
On zope3.4.0  this is what I see on "paster serve debug.ini". Trying
the worldcookery examples (with some changes for my needs)
====================portion of the error message========
    return RootStackItem.contained(self, name, data, info)
  File "/home/zope3/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/config.py",
line 708, in contained
    factory = self.context.factory(self.context, name)
  File "/home/zope3/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/config.py",
line 485, in factory
    raise ConfigurationError("Unknown directive", ns, n)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/zope3/Work/z3w/wc/site.zcml", line 4.2-4.26
    ZopeXMLConfigurationError: File
"/home/zope3/Work/z3w/wc/src/wc/configure.zcml", line 8.0
    ConfigurationError: ('Unknown directive',
u'http://namespaces.zope.org/zope', u'class')
====================

The relevant configure.zcml is
===============configure.zcml===========
<configure
    xmlns="http://namespaces.zope.org/zope">
<class class=".employee.Employee">
    <require
	permission="zope.View"
	attributes="id first_name middle_name last_name"
	/>
    <require
	permission="zope.ManageContent"
	set_attributes="id first_name middle_name last_name"
	/>
</class>
</configure>
=====================
Cheers


More information about the Zope3-users mailing list