core: added items() and iteritems() methods to PersistentDict
This commit is contained in:
parent
3ee9f140df
commit
7bb52b5969
1 changed files with 6 additions and 0 deletions
|
|
@ -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__()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue