[storm] using storm with Zope3

Jürgen Kartnaller kartnaller at lovelysystems.com
Tue Jul 22 07:17:22 BST 2008


On Mon, Jul 21, 2008 at 7:50 AM, James Henstridge <james at jamesh.id.au>
wrote:

> 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.
>

The reason for the unnamed store is simple :
All packages assume a default store for the application, this store is
always the unnamed store. This way there is no need to define special
application  store names.
If a package needs additional databases we can add named stores at any time.

Jürgen


-- 
Lovely Systems, senior developer

phone: +43 5572 908060, fax: +43 5572 908060-77
Schmelzhütterstraße 26a, 6850 Dornbirn, Austria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20080722/490ddab7/attachment.htm 


More information about the storm mailing list