Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 def _create(self, log, data, safe=True):
     doc = Document.create(log, data)
     self._backend.set(log.record_id, doc)
     return doc
Exemple #4
0
 def _create(self, log, data, safe=True):
     doc = Document.create(log, data)
     self._backend.set(log.record_id, doc)
     return doc