[Grok-dev] Re: access to the parts directory
Fernando Correa Neto
fcdoth at gmail.com
Fri Apr 25 15:02:14 EDT 2008
Hey
On Fri, Apr 25, 2008 at 12:47 PM, Christian Theune <ct at gocept.com> wrote:
> True. As a note how to solve his specific question, he can use the products
> section in zope.conf generated by buildout:
>
> (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')
Whoah. That's what I like about zope. I am always learning something new.
Good one.
Regards,
Fernando
More information about the Grok-dev
mailing list