[Zope-dev] Products in Zope 2.12+
Jens Vagelpohl
jens at dataflake.org
Wed Aug 4 04:56:20 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/4/10 10:52 , Hanno Schlichting wrote:
> Hi.
>
> On Wed, Aug 4, 2010 at 10:31 AM, Chris Withers <chris at simplistix.co.uk> wrote:
>> I'm in the process of egg-ifying some Zope 2 Products of mine (first up
>> is MailTemplates) and I'm curious as to how add-in products work in an
>> egg-based Zope setup.
>>
>> Do I need to include anything in zope.conf or some zcml somewhere?
> If your package is a namespace package in the 'Products' namespace,
> then it will be picked up automatically, once added to the PYTHONPATH.
In essence: If your egg is in the "Products" namespace you don't need to
do anything after adding it e.g. to the list of eggs for a Zope instance
in your buildout.cfg. The product will be recognized, installed, and any
configure.zcml in the root picked up automatically.
That's one reason I stick to that namespace for anything that is indeed
a Zope 2 Product.
jens
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
iEYEARECAAYFAkxZKzQACgkQRAx5nvEhZLK7TgCeI2n6Y+xjagXyPZHeNuEII2V3
xMUAoIJHoErxjlAjZRWYPME8tEPM1S2O
=IYFz
-----END PGP SIGNATURE-----
More information about the Zope-Dev
mailing list