On Mon, Jul 21, 2008 at 7:50 AM, James Henstridge <[EMAIL PROTECTED]>
wrote:
> On Mon, Jul 7, 2008 at 3:47 PM, Jürgen Kartnaller
> <[EMAIL PROTECTED]> 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
--
storm mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/storm