def _rename(self, log, data, safe=True): if 'to' in log.operation_parameters: self._backend.unset(log.record_id) else: doc = Document.create(log, data) self._backend.set(log.record_id, doc) return doc
def _rename(self, log, data, safe=True): if "to" in log.operation_parameters: self._backend.unset(log.record_id) else: doc = Document.create(log, data) self._backend.set(log.record_id, doc) return doc
def _create(self, log, data, safe=True): doc = Document.create(log, data) self._backend.set(log.record_id, doc) return doc