equal
deleted
inserted
replaced
1002 rschema = eschema.subject_relation(attr) |
1002 rschema = eschema.subject_relation(attr) |
1003 if not rschema.is_final(): # inlined relation |
1003 if not rschema.is_final(): # inlined relation |
1004 relations.append((attr, entity[attr])) |
1004 relations.append((attr, entity[attr])) |
1005 if source.should_call_hooks: |
1005 if source.should_call_hooks: |
1006 self.hm.call_hooks('before_add_entity', etype, session, entity) |
1006 self.hm.call_hooks('before_add_entity', etype, session, entity) |
1007 entity.edited_attributes = entity.keys() |
1007 entity.edited_attributes = set(entity) |
1008 entity.set_defaults() |
1008 entity.set_defaults() |
1009 entity.check(creation=True) |
1009 entity.check(creation=True) |
1010 source.add_entity(session, entity) |
1010 source.add_entity(session, entity) |
1011 if source.uri != 'system': |
1011 if source.uri != 'system': |
1012 extid = source.get_extid(entity) |
1012 extid = source.get_extid(entity) |