[storm] using storm with Zope3

James Henstridge james at jamesh.id.au
Mon Jul 21 06:50:01 BST 2008


On Mon, Jul 7, 2008 at 3:47 PM, Jürgen Kartnaller
<kartnaller at lovelysystems.com> wrote:
> Using Storm with Zope 3 is absolutely easy :
>
> Include this in your zcml configuration :
>
> <include package="storm.zope" file="meta.zcml"/>
> <include package="storm.zope"/>
> <store name="" uri="postgres://localhost:14339/az"/>
>
> In your code :
>
> store = component.getUtility(IZStorm).get('')

Note that it is probably better to give a real name to your store(s),
since it will make it easier to extend your application if you end up
needing multiple stores.  Using an empty store name makes it look like
you're doing something special.

James.



More information about the storm mailing list