Hanno Schlichting wrote:
> On Wed, Aug 4, 2010 at 10:55 AM, Chris Withers <ch...@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
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
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 )

Reply via email to