Hi,

2008/7/29 James Henstridge <[EMAIL PROTECTED]>:
>> 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/[EMAIL PROTECTED]/msg00292.html)

Cheers,
 -Olaf

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to