server/repository.py
changeset 2631 90dd26e61361
parent 2600 6cd6c5d11b45
child 2641 9c33d98a074e
equal deleted inserted replaced
2630:b3f997bc8c26 2631:90dd26e61361
  1009             self._extid_cache[(str(extid), source.uri)] = entity.eid
  1009             self._extid_cache[(str(extid), source.uri)] = entity.eid
  1010         else:
  1010         else:
  1011             extid = None
  1011             extid = None
  1012         self.add_info(session, entity, source, extid, complete=False)
  1012         self.add_info(session, entity, source, extid, complete=False)
  1013         entity._is_saved = True # entity has an eid and is saved
  1013         entity._is_saved = True # entity has an eid and is saved
  1014         #print 'added', entity#, entity.items()
       
  1015         # trigger after_add_entity after after_add_relation
  1014         # trigger after_add_entity after after_add_relation
  1016         if source.should_call_hooks:
  1015         if source.should_call_hooks:
  1017             self.hm.call_hooks('after_add_entity', etype, session, entity)
  1016             self.hm.call_hooks('after_add_entity', etype, session, entity)
  1018             # call hooks for inlined relations
  1017             # call hooks for inlined relations
  1019             for attr, value in relations:
  1018             for attr, value in relations: