[Grok-dev] Re: access to the parts directory
Sebastian Ware
sebastian at urbantalk.se
Fri Apr 25 14:55:41 EDT 2008
25 apr 2008 kl. 18.11 skrev Martijn Faassen:
> 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.
Developer notes, developer notes, developer notes... :)
Mvh Sebastian
More information about the Grok-dev
mailing list