Hi.

I've been asked to bring up 
https://code.edge.launchpad.net/~stub/storm/bug-391996/+merge/7924 here.

The goal of this branch is to allow me to alter the Store that ZStorm creates. 
In particular, for Launchpad I need to change the default Cache implementation 
and attach some Zope marker Interfaces to the Store after it is created.

I've done this by extending ZStorm.get and ZStorm.create with a store_factory  
argument. The default factory is storm.store.Store.

jamesh (who has reviewed this branch so far) felt it necessary to add a 
configure-once-first API too, so I've also added 
ZStore.set_default_store_factory to mirror ZStore.set_default_uri.

Passing a factory to ZStorm seems like the cleanest way of supporting my use 
cases and is also the most flexible.

--
Stuart Bishop <[email protected]>
http://www.stuartbishop.net/

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to