changeset 1103 | 794162cfca92 |
parent 1053 | 3b9552cf748a |
child 1106 | e14b0995cf29 |
--- a/app/soc/logic/models/site.py Sat Jan 31 12:22:01 2009 +0000 +++ b/app/soc/logic/models/site.py Sat Jan 31 12:35:40 2009 +0000 @@ -22,6 +22,7 @@ ] +from soc.cache import sidebar from soc.logic.models import presence_with_tos import soc.models.presence_with_tos @@ -79,5 +80,11 @@ """ return self.getFromFields(link_id=self.DEF_SITE_LINK_ID) + def _onCreate(self, entity): + """Flush the sidebar cache when a new active role entity has been created. + """ + + sidebar.flush() + logic = Logic()