# HG changeset patch # User Sylvain Thénault # Date 1254842007 -7200 # Node ID c43ce7949acf187df1c0ff2883c5653f13c31fb3 # Parent 521337e71fbb2f96bf162dbafa6014f839acf4e9 add edited_attributes to entities from external sources diff -r 521337e71fbb -r c43ce7949acf server/repository.py --- a/server/repository.py Tue Oct 06 17:13:08 2009 +0200 +++ b/server/repository.py Tue Oct 06 17:13:27 2009 +0200 @@ -882,6 +882,8 @@ self._extid_cache[cachekey] = eid self._type_source_cache[eid] = (etype, source.uri, extid) entity = source.before_entity_insertion(session, extid, etype, eid) + if not hasattr(entity, 'edited_attributes'): + entity.edited_attributes = set() if source.should_call_hooks: self.hm.call_hooks('before_add_entity', etype, session, entity) # XXX call add_info with complete=False ?