[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

Re: [Zope-dev] docs.zope.org automation

2010-08-04 Thread Chris Withers
Jens Vagelpohl wrote: I understand that. But it must be possible to do that programatically in my code. I mean, setup.py --long-description obviously executes Python code, which I may be able to execute myself in my current interpreter session by importing and executing stuff from setuptools.

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 ch...@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

Re: [Zope-dev] docs.zope.org automation

2010-08-04 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Chris, I've just been doing some build and release tools for a customer that involve this sort of stuff, I resorted to: snip lots of code Yikes. Maybe the subshell isn't so bad after all :-P jens -BEGIN PGP SIGNATURE- Version: GnuPG

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 it

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 ch...@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

[Zope-dev] docs.zope.org

2010-08-04 Thread Adam GROSZER
Hello Jens, Something is wrong with the automatic update of http://docs.zope.org/zopetoolkit/ Recent changes don't seem to show up. -- Best regards, Adam GROSZER mailto:agros...@gmail.com -- Quote of the day: For happiness one needs security, but joy can spring

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

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

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 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 :) Is this setuptools namespace package magic making things work or is there explicit

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 charlie.cl...@clark-consulting.eu wrote: Am 04.08.2010, 10:56 Uhr, schrieb Jens Vagelpohl j...@dataflake.org: 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

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 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

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 ch...@simplistix.co.uk 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

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 ch...@simplistix.co.uk wrote: Okay, but what about: include package=Products.Whatever / ...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

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: five:registerPackage package=. initialize=.initialize / Right, that's the bit I was after :-) Chris --

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

2010-08-04 Thread Charlie Clark
Am 04.08.2010, 11:15 Uhr, schrieb Chris Withers ch...@simplistix.co.uk: 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

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:

Re: [Zope-dev] docs.zope.org automation

2010-08-04 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/4/10 11:33 , Chris Withers wrote: Jens Vagelpohl wrote: I've just been doing some build and release tools for a customer that involve this sort of stuff, I resorted to: snip lots of code Yikes. Maybe the subshell isn't so bad after all :-P

[Zope-dev] Zope Tests: 32 OK, 9 Failed, 1 Unknown

2010-08-04 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Tue Aug 3 12:00:00 2010 UTC to Wed Aug 4 12:00:00 2010 UTC. There were 42 messages: 6 from Zope Tests, 1 from buildbot at enfoldsystems.com, 4 from buildbot at pov.lt, 13 from buildbot at winbot.zope.org, 8 from ccomb at free.fr, 10 from

Re: [Zope-dev] docs.zope.org

2010-08-04 Thread Marius Gedminas
On Wed, Aug 04, 2010 at 11:09:58AM +0200, Jens Vagelpohl wrote: On 8/4/10 10:57 , Adam GROSZER wrote: Hello Jens, Something is wrong with the automatic update of http://docs.zope.org/zopetoolkit/ Recent changes don't seem to show up. I rebuilt it now. There's a check in a

Re: [Zope-dev] docs.zope.org

2010-08-04 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/4/10 14:55 , Marius Gedminas wrote: On Wed, Aug 04, 2010 at 11:09:58AM +0200, Jens Vagelpohl wrote: On 8/4/10 10:57 , Adam GROSZER wrote: Hello Jens, Something is wrong with the automatic update of http://docs.zope.org/zopetoolkit/

Re: [Zope-dev] docs.zope.org

2010-08-04 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/4/10 17:26 , Wichert Akkerman wrote: I'm wondering: can it be made to skip useless docs such as http://docs.zope.org/zope.hookable/index.html, perhaps by checking for linecount? There are also a lot of packages that only have a changelog

Re: [Zope-dev] docs.zope.org

2010-08-04 Thread Wichert Akkerman
On 8/4/10 17:38 , Jens Vagelpohl wrote: IMHO trying to come up with some kind of programmatic algorithm to judge a bit of documentation as good enough to show is insane. I'm not going to attempt it. Fair enough. Maybe shitty (for some definition of shitty, as someone else would say)

Re: [Zope-dev] docs.zope.org

2010-08-04 Thread Marius Gedminas
On Wed, Aug 04, 2010 at 05:41:08PM +0200, Wichert Akkerman wrote: On 8/4/10 17:38 , Jens Vagelpohl wrote: IMHO trying to come up with some kind of programmatic algorithm to judge a bit of documentation as good enough to show is insane. I'm not going to attempt it. Fair enough. Maybe