Exemplo n.º 1
0
 def __getstate__(self):
     return {
         'serial_code': construct_serial_code(self),
         'progress': self._progress,
         'author_node_id': self._author_node_id,
         'author_token_revision': self._author_token_revision
     }
Exemplo n.º 2
0
 def __getstate__(self):
     return {
         'serial_code': construct_serial_code(self),
         'progress': self._progress,
         'author_node_id': self._author_node_id,
         'author_token_revision': self._author_token_revision
     }
Exemplo n.º 3
0
 def __getstate__(self):
     return {
         'serial_code': construct_serial_code(self),
         'type': self._type.value[0],
         'author_node_id': self._author_node_id
     }