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