server/repository.py
changeset 5201 2b4267157f85
parent 5177 395e1ff018ae
parent 5187 5f9a2b32c9e1
child 5302 dfd147de06b2
equal deleted inserted replaced
5196:d14bfd477c44 5201:2b4267157f85
  1117                     for attr, value, _ in relations:
  1117                     for attr, value, _ in relations:
  1118                         hm.call_hooks('before_add_relation', session,
  1118                         hm.call_hooks('before_add_relation', session,
  1119                                       eidfrom=entity.eid, rtype=attr, eidto=value)
  1119                                       eidfrom=entity.eid, rtype=attr, eidto=value)
  1120                     if not only_inline_rels:
  1120                     if not only_inline_rels:
  1121                         hm.call_hooks('before_update_entity', session, entity=entity)
  1121                         hm.call_hooks('before_update_entity', session, entity=entity)
  1122                 source.update_entity(session, entity)
  1122             source.update_entity(session, entity)
  1123             self.system_source.update_info(session, entity, need_fti_update)
  1123             self.system_source.update_info(session, entity, need_fti_update)
  1124             if source.should_call_hooks:
  1124             if source.should_call_hooks:
  1125                 if not only_inline_rels:
  1125                 if not only_inline_rels:
  1126                     hm.call_hooks('after_update_entity', session, entity=entity)
  1126                     hm.call_hooks('after_update_entity', session, entity=entity)
  1127                 for attr, value, prevvalue in relations:
  1127                 for attr, value, prevvalue in relations: