[Zope3-Users] Using ZCML for defining global constants ?

Andrew Groom andrew at reurbanise.co.nz
Mon Sep 11 00:55:10 EDT 2006


Hi there,

I've got a few global constants that I'd like to be available to my 
application and a .zcml file seems to be a sensible place. I'm thinking 
of something like a .zcml file with, e.g.:

<applicationSettings>
	<setting name="name1" value="value1"/>
	<setting name="name2" value="value2"/>
	...
</applicationSettings>

This would then be available in a component as a dictionary. Is anythign 
like this already available ?

Cheers, Andrew.
-----------------------------------
Reurbanise - Urban Sustainability
ph: (03) 3528 055, mobile: 0274 992 569
http://www.reurbanise.co.nz


More information about the Zope3-users mailing list