Example #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
     }
Example #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
     }
Example #3
0
 def __getstate__(self):
     return {
         'serial_code': construct_serial_code(self),
         'type': self._type.value[0],
         'author_node_id': self._author_node_id
     }