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: |