[Zope-dev] Re: RFC: The future of Products.Five(green eggs and zope)
Daniel Nouri
daniel at infrae.com
Tue Oct 31 11:30:29 EST 2006
Tres Seaver wrote:
> Daniel Nouri wrote:
>>> whit wrote:
>>> <snap>
>>>> We still have to handle the Products issue for add ons(mcdonc, donde
>>>> estamos con Basketos?). But if Basket is added to 2.11, this might not
>>>> be such a big deal.
>>> >From what I know, Basket has been abandoned and there's even no good
>>> reason for using it. Inside a workingenv you can just go and install
>>> egged Products without problems.
>
> Basket gives Zope the framework to tickle the 'initialize' entry point
> in eggs, which is *not* unnecessary AFAIK.
'intialize' will be called for eggs that use the Products namespace
package. If the Product lives outside of Products, it must use the
'five:registerPackage' directive so that its 'initialize' is called.
One thing to note is that if you install such an egg that has a Products
namespace system-wide, it will be 'initialize'd in every Zope instance.
So it's advisable to 1) not use the Products namespace package and rely
on 'five:registerPackage' if you need 'initialize' and 2) use workingenv
or zc.buildout to install the eggs.
Daniel
More information about the Zope-Dev
mailing list