server/repository.py
changeset 2667 c8aa82538d8e
parent 2665 0c6281487f90
child 2708 60d728bdcba5
--- a/server/repository.py	Mon Aug 03 17:32:42 2009 +0200
+++ b/server/repository.py	Mon Aug 03 17:59:34 2009 +0200
@@ -1038,13 +1038,15 @@
                                     entity.eid, attr, value)
         return entity.eid
 
-    def glob_update_entity(self, session, entity):
+    def glob_update_entity(self, session, entity, edited_attributes):
         """replace an entity in the repository
         the type and the eid of an entity must not be changed
         """
         etype = str(entity.e_schema)
         if server.DEBUG & server.DBG_REPO:
-            print 'UPDATE entity', etype, entity.eid, dict(entity)
+            print 'UPDATE entity', etype, entity.eid, \
+                  dict(entity), edited_attributes
+        entity.edited_attributes = edited_attributes
         entity.check()
         eschema = entity.e_schema
         session.set_entity_cache(entity)