comparison 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
comparison
equal deleted inserted replaced
1291:0db0013c59dd 1292:b29a065a66f0
50 if not self.profile: 50 if not self.profile:
51 d = self.storage.loadGenPrivates(self._cache, self.namespace) 51 d = self.storage.loadGenPrivates(self._cache, self.namespace)
52 else: 52 else:
53 d = self.storage.loadIndPrivates(self._cache, self.namespace, self.profile) 53 d = self.storage.loadIndPrivates(self._cache, self.namespace, self.profile)
54 return d.addCallback(lambda dummy: self) 54 return d.addCallback(lambda dummy: self)
55
56 def iteritems(self):
57 return self._cache.iteritems()
58
59 def items(self):
60 return self._cache.items()
55 61
56 def __repr__(self): 62 def __repr__(self):
57 return self._cache.__repr__() 63 return self._cache.__repr__()
58 64
59 def __str__(self): 65 def __str__(self):