--- 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:
--- 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)
--- 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 <http://www.gnu.org/licenses/>.
-"""base classes to handle tabbed views
-
-"""
+"""base classes to handle tabbed views"""
__docformat__ = "restructuredtext en"