app/soc/logic/models/notification.py
changeset 1517 a467d13e34ea
parent 1308 35b75ffcbb37
child 1556 c81109a8a1a1
--- 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)