core: added items() and iteritems() methods to PersistentDict

This commit is contained in:
Goffi 2015-01-26 01:57:06 +01:00
commit 7bb52b5969

View file

@ -53,6 +53,12 @@ class PersistentDict(object):
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__()