server/sources/native.py
branchstable
changeset 7507 4c043afb104a
parent 7501 2983dd24494a
child 7514 32081892850e
child 7530 15178bf89fb6
equal deleted inserted replaced
7506:c8cda2aca92e 7507:4c043afb104a
  1301         # delete the entity
  1301         # delete the entity
  1302         attrs = {'cw_eid': eid}
  1302         attrs = {'cw_eid': eid}
  1303         sql = self.sqlgen.delete(SQL_PREFIX + entity.__regid__, attrs)
  1303         sql = self.sqlgen.delete(SQL_PREFIX + entity.__regid__, attrs)
  1304         self.doexec(session, sql, attrs)
  1304         self.doexec(session, sql, attrs)
  1305         # remove record from entities (will update fti if needed)
  1305         # remove record from entities (will update fti if needed)
  1306         self.delete_info(session, entity, self.uri, None)
  1306         self.delete_info_multi(session, [entity], self.uri)
  1307         self.repo.hm.call_hooks('after_delete_entity', session, entity=entity)
  1307         self.repo.hm.call_hooks('after_delete_entity', session, entity=entity)
  1308         return ()
  1308         return ()
  1309 
  1309 
  1310     def _undo_u(self, session, action):
  1310     def _undo_u(self, session, action):
  1311         """undo an entity update"""
  1311         """undo an entity update"""