Commits

Lynn Rees committed b0d230d

[svn]

Comments (0)

Files changed (1)

trunk/multishove/__init__.py

     
     def __init__(self, *a, **kw):
         # Init superclass with first store
-        super(MultiShove, self).__init__(a[0], **kw)
+        super(MultiShove, self).__init__('', **kw)
+        if not a: a = ('simple://',)
         # Load stores
         self._stores = list(getbackend(i, stores, **kw) for i in a)
         # Load cache
             del self._cache[key]
         except KeyError: pass
         self.sync()
-        for store in self._stores: del self.store[key]
+        for store in self._stores: del store[key]
 
     def keys(self):
         '''Returns a list of keys in shove.'''
             for idx, store in enumerate(self._stores):
                 store.close()
                 self._stores[idx] = None
-            self._cache = self._buffer = None
+            self._cache = self._buffer = self._stores = None