[Zope-dev] Products in Zope 2.12+

Chris Withers chris at simplistix.co.uk
Wed Aug 4 04:55:03 EDT 2010


Hanno Schlichting wrote:
> For a general Python package to be picked up, you would need to add a
> regular ZCML slug into the etc/package-includes directory of your
> instance.

What does a "regular ZCML slug" look like?

> If your package is a namespace package in the 'Products' namespace,
> then it will be picked up automatically, once added to the PYTHONPATH.

Is this setuptools namespace package magic making things work or is 
there explicit code in Zope that does this?

> This is triggered by the "five:loadProducts" and
> "five:loadProductsOverrides" directives in your instances site.zcml.
> The code for those directives is either in Products.Five or OFS
> depending on which version of Zope2 you use.

Thanks for this!

Chris



More information about the Zope-Dev mailing list