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