# HG changeset patch # User Sylvain Thénault # Date 1286919414 -7200 # Node ID 43d71dd8a8ecc06649e1ab2c1751c20fd3bd4e5e # Parent 6401a9d0b5aa5eaa3a2254f18f374b9c84f7e301 cleanup and 3.10 updates diff -r 6401a9d0b5aa -r 43d71dd8a8ec hooks/notification.py --- a/hooks/notification.py Tue Oct 12 23:36:35 2010 +0200 +++ b/hooks/notification.py Tue Oct 12 23:36:54 2010 +0200 @@ -140,7 +140,7 @@ rset = session.execute(rql, {'x': self.entity.eid}) for i, attr in enumerate(attrs): oldvalue = rset[0][i] - newvalue = self.entity[attr] + newvalue = self.entity.cw_edited[attr] if oldvalue != newvalue: thisentitychanges.add((attr, oldvalue, newvalue)) if thisentitychanges: diff -r 6401a9d0b5aa -r 43d71dd8a8ec server/repository.py --- a/server/repository.py Tue Oct 12 23:36:35 2010 +0200 +++ b/server/repository.py Tue Oct 12 23:36:54 2010 +0200 @@ -1159,7 +1159,7 @@ # set caches asap extid = self.init_entity_caches(session, entity, source) if server.DEBUG & server.DBG_REPO: - print 'ADD entity', self, entity.__regid__, entity.eid, entity.cw_attr_cache + print 'ADD entity', self, entity.__regid__, entity.eid, edited relations = [] if source.should_call_hooks: self.hm.call_hooks('before_add_entity', session, entity=entity) diff -r 6401a9d0b5aa -r 43d71dd8a8ec web/views/tabs.py --- a/web/views/tabs.py Tue Oct 12 23:36:35 2010 +0200 +++ b/web/views/tabs.py Tue Oct 12 23:36:54 2010 +0200 @@ -15,9 +15,7 @@ # # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . -"""base classes to handle tabbed views - -""" +"""base classes to handle tabbed views""" __docformat__ = "restructuredtext en"