--- a/app/soc/logic/models/notification.py Thu Feb 26 16:51:35 2009 +0000
+++ b/app/soc/logic/models/notification.py Thu Feb 26 16:52:29 2009 +0000
@@ -60,10 +60,12 @@
super(Logic, self)._onCreate(entity)
- def _updateField(self, entity, name, value):
+ def _updateField(self, entity, entity_properties, name):
"""If unread changes we flush the sidebar cache.
"""
+ value = entity_properties[name]
+
if (name == 'unread') and (entity.unread != value):
# in case that the unread value changes we flush the sidebar.
sidebar.flush(entity.scope.account)