server/repository.py
branchstable
changeset 5187 5f9a2b32c9e1
parent 5167 529861a73ec8
child 5201 2b4267157f85
child 5292 8b496574b65c
equal deleted inserted replaced
5186:f3c2cb460ad9 5187:5f9a2b32c9e1
  1102                     for attr, value, _ in relations:
  1102                     for attr, value, _ in relations:
  1103                         hm.call_hooks('before_add_relation', session,
  1103                         hm.call_hooks('before_add_relation', session,
  1104                                       eidfrom=entity.eid, rtype=attr, eidto=value)
  1104                                       eidfrom=entity.eid, rtype=attr, eidto=value)
  1105                     if not only_inline_rels:
  1105                     if not only_inline_rels:
  1106                         hm.call_hooks('before_update_entity', session, entity=entity)
  1106                         hm.call_hooks('before_update_entity', session, entity=entity)
  1107                 source.update_entity(session, entity)
  1107             source.update_entity(session, entity)
  1108             self.system_source.update_info(session, entity, need_fti_update)
  1108             self.system_source.update_info(session, entity, need_fti_update)
  1109             if source.should_call_hooks:
  1109             if source.should_call_hooks:
  1110                 if not only_inline_rels:
  1110                 if not only_inline_rels:
  1111                     hm.call_hooks('after_update_entity', session, entity=entity)
  1111                     hm.call_hooks('after_update_entity', session, entity=entity)
  1112                 for attr, value, prevvalue in relations:
  1112                 for attr, value, prevvalue in relations: