コード例 #1
0
ファイル: state.py プロジェクト: caipeichao/Histo
 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)
コード例 #2
0
ファイル: index.py プロジェクト: caipeichao/Histo
 def __iter__(self):
     from histo.server.keysets import KeySets
     for e in self.index:
         yield KeySets.decode(e)