Product configuration in zope.app.wsgi
Hi there, As it turned out product configurations are not set with zope.app.wsgi (contrary, for instance, to zope.app.server). If in your zope.conf you define:: <product-config prod1> key1 = val1 </product-config> these setting won't be accessible on startup using zope.app.wsgi and zope.app.appsetup.product.getProductConfiguration(). Apparently only the appropriate setProductConfigurations() call had to be included in zope.app.wsgi to support it. Is there a special reason why that was not included in zope.app.wsgi? If not, I'd be glad to fix this. Or did I miss something important here? Best regards, -- Uli
On 2009-08-22, Uli Fouquet <uli@gnufix.de> wrote:
As it turned out product configurations are not set with zope.app.wsgi (contrary, for instance, to zope.app.server).
[...snip...]
Is there a special reason why that was not included in zope.app.wsgi?
My question exactly. And this raises another question: if it wasn't included, is that because there is a better way of handling configuration? My goal is to have settings in buildout, outside the actual code that uses it. So I want to use buildout for setting mail hosts and standard email recipients, stuff like that. Using a template recipe to generate a file somewhere? Stuff it into the ini file that is used by paste? More ideas? Reinout -- Reinout van Rees - reinout@vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets"
participants (2)
-
Reinout van Rees -
Uli Fouquet