equal
deleted
inserted
replaced
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: |