Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

Product configuration in zope.app.wsgi

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


uli at gnufix

Aug 22, 2009, 5:45 AM

Post #1 of 2 (335 views)
Permalink
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
Attachments: signature.asc (0.18 KB)


reinout at vanrees

Aug 25, 2009, 1:26 AM

Post #2 of 2 (275 views)
Permalink
Re: Product configuration in zope.app.wsgi [In reply to]

On 2009-08-22, Uli Fouquet <uli[at]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[at]vanrees.org - http://reinout.vanrees.org
Software developer at http://www.thehealthagency.com
"Military engineers build missiles. Civil engineers build targets"

_______________________________________________
Zope-Dev maillist - Zope-Dev[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.