[storm] RFC: Storm with Pylons and Repoze.tm2
James Henstridge
james at jamesh.id.au
Tue Jul 29 12:00:33 BST 2008
On Tue, Jul 29, 2008 at 10:54 AM, James Henstridge <james at jamesh.id.au> wrote:
> On Tue, Jul 29, 2008 at 10:37 AM, James Henstridge <james at jamesh.id.au> wrote:
>>> I don't have zope installed on my system and for repoze.tm2 I just
>>> need the zope transaction package.
>>> (from zope.testing.cleanup import addCleanUp and from
>>
>> Is zope.testing such a bad dependency?
>
> Looking at some of the Zope code there are things like:
>
> try:
> from zope.testing.cleanup import addCleanUp
> except ImportError:
> # don't have that part of Zope
> pass
> else:
> addCleanUp(_clear)
> del addCleanUp
>
> 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?
James.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-less-zope.patch
Type: text/x-diff
Size: 2624 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/storm/attachments/20080729/3eeccdb9/attachment.bin
More information about the storm
mailing list