server/repository.py
branchstable
changeset 3567 c43ce7949acf
parent 3539 f3b14d052798
child 3584 585c4423a54c
--- 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 ?