# HG changeset patch # User Sylvain Thénault # Date 1276758652 -7200 # Node ID 14daeb31ee67b2470eb2cde63f66aee4d15294f1 # Parent ec5dbbb6a5495997e402b3ea5f5c9470da10f8b6 [entity] can't do anymore dict(entity) since entity doesn't inherit from dict diff -r ec5dbbb6a549 -r 14daeb31ee67 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)