changeset 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 0db0013c59dd
children 0541cb64217e
files src/memory/persistent.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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__()