--- 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.