[Grok-dev] Re: Autoincluding ZCML for package dependencies

Martijn Faassen faassen at startifact.com
Thu Jan 24 05:32:56 EST 2008


Hey,

Martin Aspeli wrote:
[snip]
> Plone is interested in this too (slugs suck!). Wichert did some 
> proof-of-concept work with entry points. How else would you do it? 
> Scanning sys.path?

We use setuptools APIs to find out the requirements a package has and so 
on. It's all a trifle hairy but not a lot of code now that we're done, 
and it's tested.

> I don't have time to read up on the code now, but hopefully the solution 
> should generalise to Plone easily enough.

I think that as long as it tries to include ZCML from Python packages 
(not old-style Products), it should just work with Plone out of the box. 
I'm sure we'll have a few issues with weird packages here and there, but 
we'll clean those up as we go along.

Regards,

Martijn



More information about the Grok-dev mailing list