[undo] init entity cache when undoing an entity deletion stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 30 Mar 2010 11:17:50 +0200
branchstable
changeset 5075 a4b735e76c66
parent 5074 bc481dab93d4
child 5076 b0e6134b4324
[undo] init entity cache when undoing an entity deletion
server/sources/native.py
--- a/server/sources/native.py	Tue Mar 30 11:17:21 2010 +0200
+++ b/server/sources/native.py	Tue Mar 30 11:17:50 2010 +0200
@@ -920,6 +920,7 @@
             else:
                 entity[rtype] = value
         entity.set_eid(eid)
+        session.repo.init_entity_caches(session, entity, self)
         entity.edited_attributes = set(entity)
         entity.check()
         self.repo.hm.call_hooks('before_add_entity', session, entity=entity)