diff src/memory/persistent.py @ 1292:b29a065a66f0 frontends_multi_profiles

core: added items() and iteritems() methods to PersistentDict
author Goffi <goffi@goffi.org>
date Mon, 26 Jan 2015 01:57:06 +0100
parents f6182f6418ea
children 91e72da1d093
line wrap: on
line diff
--- a/src/memory/persistent.py	Sat Jan 24 16:12:50 2015 +0100
+++ b/src/memory/persistent.py	Mon Jan 26 01:57:06 2015 +0100
@@ -53,6 +53,12 @@
             d = self.storage.loadIndPrivates(self._cache, self.namespace, self.profile)
         return d.addCallback(lambda dummy: self)
 
+    def iteritems(self):
+        return self._cache.iteritems()
+
+    def items(self):
+        return self._cache.items()
+
     def __repr__(self):
         return self._cache.__repr__()