Exemplo n.º 1
0
 def loadState(self, state):
     stream = self.bundle.open(state, 'rb')
     from picklestream import PickleStream
     stream = PickleStream(stream)
     with stream as f:
         result = f.readObject()
     from histo.server.keysets import KeySets
     return KeySets.decode(result)
Exemplo n.º 2
0
 def __iter__(self):
     from histo.server.keysets import KeySets
     for e in self.index:
         yield KeySets.decode(e)