[Grok-dev] Re: access to the parts directory

Martijn Faassen faassen at startifact.com
Fri Apr 25 12:11:14 EDT 2008


Hi there,

Christian Theune wrote:
[snip]
> (this is pseudo-buildout)
> 
> zope.conf = ...
>     <product-config joachim>
>     my-path ${buildout:directory}/parts/foo
>     </product-config>
> 
> 
> Then in your code, you can retreive this data using:
> 
>     import zope.app.appsetup.product
>     zope.app.appsetup.product.getProductConfiguration('joachim').get('my-path')

Cool, I didn't know this! Joachim, if you can work this out, you should 
write a document on how to use this for grok.zope.org.

Regards,

Martijn





More information about the Grok-dev mailing list