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

Andreas Jung lists at zopyx.com
Sat Apr 4 13:39:00 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Never heard or seen a zcml 'class' tag. Do you mean 'content'?

- -aj

On 04.04.2009 14:59 Uhr, Chetan Kumar wrote:
> 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
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users


- -- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAknXmzQACgkQCJIWIbr9KYwGmQCgreTROLRFRU6NjRbPjccifxEB
3zMAoOE1AZGZvmtQ+BQFjTBz4nhkUalA
=KeG7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20090404/9393ac20/attachment.vcf 


More information about the Zope3-users mailing list