zope.contentprovider not useable together with Zope 2.13.4

Michael Howitz <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
Hi,

we are upgrading a customers project from Zope 2.11.x to Zope 2.13.4.
In this project the expression type "provider" of zope.contenttype is used.
But loading the configure.zcml of zope.contentprovider fails with:

ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/tales', u'expressiontype')

I tracked this down to Zope2/App/exclude.zcml where the meta.zcml of the package zope.browserpage gets excluded.
Sadly this ZCML file defines the expressiontype directive.

What is the current way to use zope.contentprovider in a Zope2 environment?

I had the following idea to fix this issue:

* move the registration of the directive from meta.zcml into meta-expressiontype.zcml
* include meta-expressiontype.zcml of zope.browserpage
* include meta-expressiontype.zcml in our project to get around the exclusion of Zope2

Are there any better ideas?

 
Yours sincerely,
-- 
Michael Howitz · [email protected] · software developer
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1
Zope and Plone consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.