[Grok-dev] Importing settings from buildout.cfg

Christian Klinger cklinger at novareto.de
Fri Jul 31 07:32:06 EDT 2009


Hi Sebastian,

i can provide you an little (Zope2) example which works for me.


### buildout.cfg
[instance]
recipe = plone.recipe.zope2instance
effective-user = reff
extranet-product = <product-config extranet>
             server http://10.30.0.86/
            </product-config>
zope-conf-additional = ${instance:extranet-product}


## your script
from App.config import getConfiguration

config = getConfiguration()
extranet = config.product_config.get('extranet')
server = extranet.get('server')


HTH Christian



> I know someone wrote how to import settings from buildout.cfg (or  
> maybe a zcml-file) but I can't find the instructions. Could someone  
> point me in the right direction?
> 
> Mvh Sebastian



More information about the Grok-dev mailing list