def save(self): id = None with Lock(): self._sync_graph_to_doc() id = DataObject.save(self) return id