server/repository.py
branchstable
changeset 6188 e1c9610b2360
parent 6128 fbb8398f80dc
child 6189 9fa02f352c8c
equal deleted inserted replaced
6187:348c7d93cda3 6188:e1c9610b2360
  1081                 continue
  1081                 continue
  1082             entity.cw_set_relation_cache(rtype, 'object', session.empty_rset())
  1082             entity.cw_set_relation_cache(rtype, 'object', session.empty_rset())
  1083         # set inline relation cache before call to after_add_entity
  1083         # set inline relation cache before call to after_add_entity
  1084         for attr, value in relations:
  1084         for attr, value in relations:
  1085             session.update_rel_cache_add(entity.eid, attr, value)
  1085             session.update_rel_cache_add(entity.eid, attr, value)
       
  1086             del_existing_rel_if_needed(session, entity.eid, attr, value)
  1086         # trigger after_add_entity after after_add_relation
  1087         # trigger after_add_entity after after_add_relation
  1087         if source.should_call_hooks:
  1088         if source.should_call_hooks:
  1088             self.hm.call_hooks('after_add_entity', session, entity=entity)
  1089             self.hm.call_hooks('after_add_entity', session, entity=entity)
  1089             # call hooks for inlined relations
  1090             # call hooks for inlined relations
  1090             for attr, value in relations:
  1091             for attr, value in relations: