[Zope3-Users] zope.app.wsgi doesn't register product configurations properly

Marius Gedminas mgedmin at b4net.lt
Mon Apr 21 11:47:44 EDT 2008


On Thu, Apr 17, 2008 at 03:35:09PM +0800, Yuan HOng wrote:
> Tyring out z3c.extfile, I added in zope.conf file the following
> product configuration section:
> 
> <product-config z3c.extfile>
>   storagedir var/filestorage
> </product-config>
> 
> This doesn't not work as expected when I am using Paste and wsgi.
> Looking into the code, I think the config function in zope.app.wsgi
> should be patched by adding:
> 
> from zope.app.appsetup.product import setProductConfigurations
> 
> def config(...)
> ...
>     if options.product_config:
>         setProductConfigurations(options.product_config)
> ...
> 
> This is exactly what zope.app.server does when starting up the server.
> 
> Or is product configuration explicitly not desired with zope.app.wsgi?

I think it's a simple bug.  Would you mind adding it to the bug tracker?
https://launchpad.net/zope3/+bugs


Marius Gedminas
-- 
"Linux: the operating system with a CLUE... Command Line User Environment".
(seen in a posting in comp.software.testing)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20080421/c6aece56/attachment.bin


More information about the Zope3-users mailing list