app/soc/logic/models/role.py
changeset 1517 a467d13e34ea
parent 1308 35b75ffcbb37
child 1625 cd7174032b56
--- a/app/soc/logic/models/role.py	Thu Feb 26 16:51:35 2009 +0000
+++ b/app/soc/logic/models/role.py	Thu Feb 26 16:52:29 2009 +0000
@@ -63,10 +63,12 @@
 
     return group
 
-  def _updateField(self, entity, name, value):
+  def _updateField(self, entity, entity_properties, name):
     """Special logic for role. If status changes to active we flush the sidebar.
     """
 
+    value = entity_properties[name]
+
     if (name == 'status') and (entity.status != value) and value == 'active':
       # in case the status of the role changes to active we flush the sidebar
       # cache. Other changes will be visible after the retention time expires.