[Zope-dev] Products in Zope 2.12+
Chris Withers
chris at simplistix.co.uk
Wed Aug 4 05:13:35 EDT 2010
Hanno Schlichting wrote:
> On Wed, Aug 4, 2010 at 10:55 AM, Chris Withers <chris at simplistix.co.uk> wrote:
>> What does a "regular ZCML slug" look like?
>
> My first Google hit is this
> http://worldcookery.com/files/ploneconf05-five/step2.html :)
yeah yeah...
Okay, but what about:
<include package="Products.Whatever" />
...causes Whatever/__init__.py's initialize method to get called?
>> Is this setuptools namespace package magic making things work or is there
>> explicit code in Zope that does this?
>
> It's not really setuptools specific. It's just the same old code that
> does "import Products" and then iterates over everything it finds.
Yeah, but it's setuptools namespace packages magic that makes sure
__path__, which the old Zope 2 code iterates over, is set up correctly,
right?
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-Dev
mailing list