Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Charlie Clark wrote: > As you know, I don't use Plone either. I'm also evil but in a different > way! The recipe just sets up a Zope 2 instance, which I believe is a bit > tricky to work on all platforms. It's a piece of piss and needs no special recipes: http://docs.zope.org/zope2/releases/

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Charlie Clark
Am 04.08.2010, 11:15 Uhr, schrieb Chris Withers : > yes, which it isn't for me, since it's evil and I'm not using Plone Well, I said it was the idiot's guide... As you know, I don't use Plone either. I'm also evil but in a different way! The recipe just sets up a Zope 2 instance, which I belie

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hanno Schlichting wrote: > If you have a package, which isn't in the "Products" namespace and > still want its initialize to be called, you need to add some bits to > your configure.zcml: > > Right, that's the bit I was after :-) Chris -- Simplistix - Content Management, Batch Processing & Py

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Hanno Schlichting
On Wed, Aug 4, 2010 at 11:13 AM, Chris Withers wrote: > Okay, but what about: > > > > ...causes Whatever/__init__.py's initialize method to get called? Yes. Eggified products behave in the same way as code dumped into one of the "products" directories. If you have a package, which isn't in the

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Baiju M
On Wed, Aug 4, 2010 at 2:45 PM, Chris Withers wrote: > Baiju M wrote: >>> >>> zcml = simplistix.MailTemplates to your instance configuration and you're >>> good. >> >> There is an assumption that plone.recipe.zope2instance [1] is used >> to create instances from Buildout. > > yes, which it isn't f

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Baiju M wrote: >> zcml = simplistix.MailTemplates to your instance configuration and you're >> good. > > There is an assumption that plone.recipe.zope2instance [1] is used > to create instances from Buildout. yes, which it isn't for me, since it's evil and I'm not using Plone ;-) Chris -- Simp

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hanno Schlichting wrote: > On Wed, Aug 4, 2010 at 10:55 AM, Chris Withers 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: ...causes Whatever/__init__.py's in

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Baiju M
On Wed, Aug 4, 2010 at 2:33 PM, Charlie Clark wrote: > Am 04.08.2010, 10:56 Uhr, schrieb Jens Vagelpohl : > >> 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 w

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Hanno Schlichting
On Wed, Aug 4, 2010 at 10:55 AM, Chris Withers wrote: > What does a "regular ZCML slug" look like? My first Google hit is this http://worldcookery.com/files/ploneconf05-five/step2.html :) > Is this setuptools namespace package magic making things work or is there > explicit code in Zope that doe

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Charlie Clark
Am 04.08.2010, 10:56 Uhr, schrieb Jens Vagelpohl : > 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 th

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Jens Vagelpohl
-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 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

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
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

Re: [Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Hanno Schlichting
Hi. On Wed, Aug 4, 2010 at 10:31 AM, Chris Withers 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 somewher

[Zope-dev] Products in Zope 2.12+

2010-08-04 Thread Chris Withers
Hi All, 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 not how are products picked up? Where can I find th