[entity] can't do anymore dict(entity) since entity doesn't inherit from dict
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 17 Jun 2010 09:10:52 +0200
changeset 5765 14daeb31ee67
parent 5764 ec5dbbb6a549
child 5766 c397819f2482
[entity] can't do anymore dict(entity) since entity doesn't inherit from dict
server/repository.py
--- a/server/repository.py	Thu Jun 17 09:10:34 2010 +0200
+++ b/server/repository.py	Thu Jun 17 09:10:52 2010 +0200
@@ -1036,7 +1036,7 @@
         # set caches asap
         extid = self.init_entity_caches(session, entity, source)
         if server.DEBUG & server.DBG_REPO:
-            print 'ADD entity', entity.__regid__, entity.eid, dict(entity)
+            print 'ADD entity', self, entity.__regid__, entity.eid, entity.cw_attr_cache
         relations = []
         if source.should_call_hooks:
             self.hm.call_hooks('before_add_entity', session, entity=entity)
@@ -1088,7 +1088,7 @@
         """
         if server.DEBUG & server.DBG_REPO:
             print 'UPDATE entity', entity.__regid__, entity.eid, \
-                  dict(entity), edited_attributes
+                  entity.cw_attr_cache, edited_attributes
         hm = self.hm
         eschema = entity.e_schema
         session.set_entity_cache(entity)