[Zope] Zope2.12

Jens Vagelpohl jens at dataflake.org
Fri Dec 25 08:50:38 EST 2009


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

Jim Pharis wrote:
>   <browser:containerViews
>        for="Test.interfaces.INewTestSite"
>        contents="zope.ManageContent"
>        index="zope.View"
>        add="zope.ManageContent"
>        />
> 
>     ZopeXMLConfigurationError: File
> "/home/binbrain/Programs/Zope2.12/instance/lib/python/Test/browser/configure.zcml",
> line 14.2
>     ConfigurationError: ('Unknown directive', u'
> http://namespaces.zope.org/browser', u'containerViews')
> 
> So containerView is declared in
> ./zope.app.container-3.8.0-py2.6.egg/zope/app/container/browser/meta.zcml
> and I proceeded to just add it etc/site.zcml. That's when I noticed that the
> package-includes were by in large missing. At least it looks that way.

Not all Zope 3 ZCML directives work in Zope 2. You need to look at the
Five product included with Zope 2 which provides Zope 2-shims for many
Zope 3 directives, especially those involving browser views.

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAks0wy4ACgkQRAx5nvEhZLLenQCfevHE7G5nOcfi7hFh1L80zBqm
n50AoJbVNdEvJwGNs2xjgO6+I9/0MvqK
=PtXu
-----END PGP SIGNATURE-----


More information about the Zope mailing list