[Zope3-Users] Re: zopeproject zcml problem

Andrew Rodriguez nitromaster101 at gmail.com
Mon Aug 13 09:18:09 EDT 2007


Here is my configure.zcml:

<configure xmlns="http://namespaces.zope.org/zope"
           xmlns:i18n="http://namespaces.zope.org/i18n"
           i18n_domain="library">

  <include file="permissions.zcml" />
  <include file="roles.zcml" />



On 8/13/07, Philipp von Weitershausen <philipp at weitershausen.de> wrote:
>
> Andrew Rodriguez wrote:
> > I was trying to use zopeproject, but when I have any zcml,
> > and I run ./bin/paster serve deploy.ini, I get a ConfigurationError.
> >
> > The error:
> >   ...
> >   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> >   python2.4/site-packages/zope.configuration-3.4.0b1-py2.4.egg/
> >   zope/configuration/config.py", line 485, in factory
> >     raise ConfigurationError("Unknown directive", ns, n)
> >   zope.configuration.xmlconfig.ZopeXMLConfigurationError : File
> > "/Users/andrew/biblioteca/site.zcml", line 4.2-4.34
> >     ZopeXMLConfigurationError: File
> > "/Users/andrew/biblioteca/biblioteca/configure.zcml", line 5.2-5.37
> >     ZopeXMLConfigurationError: File
> > "/Users/andrew/biblioteca/biblioteca/permissions.zcml", line 3.2
> >     ConfigurationError: ('Unknown directive',
> > u'http://namespaces.zope.org/zope', u'permission')
> >
> > And my permission.zcml:
> >
> > <configure xmlns="http://namespaces.zope.org/zope">
> >   <permission
> >       id="library.ViewBooks"
> >       title="View books"
> >       />
> >  ...
> >
> > This happens with every thing, even simple things such as <class ...>,
> > so my question would be how would I get paster to recognize them.
>
> Where and how are you including permission.zcml? Order matters with ZCML.
>
>
> --
> http://worldcookery.com -- Professional Zope documentation and training
>
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>



-- 
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20070813/9f369223/attachment.htm


More information about the Zope3-users mailing list