[storm] RFC: Storm with Pylons and Repoze.tm2
Olaf Conradi
olaf at conradi.org
Tue Jul 29 15:06:33 BST 2008
Hi,
2008/7/29 James Henstridge <james at jamesh.id.au>:
>> If making zope.testing an optional dependency makes code reuse easier,
>> then we should probably do it.
>
> The attached patch should make the storm.zope package usable with just
> zope.interface and transaction, while retaining all the other
> functionality when a more complete Zope is available.
>
> With this patch, are you able to use storm.zope.zstorm.global_zstorm
> directly for your wsgi app?
Cool, I'll try when I get home from work. Thanks.
There is another difference though.
The only global definition I have is the StackedObjectProxy (SOP)
called storm_session.
I instantiate ZStorm() in the middleware layer and register that to
the storm_session SOP.
Which will create one ZStorm instance per request and the module using
it does not need to know which one.
This helps when multiple wsgi apps run in the same process.
(http://www.mail-archive.com/pylons-devel@googlegroups.com/msg00292.html)
Cheers,
-Olaf
More information about the storm
mailing list