author | Sverre Rabbelier <srabbelier@gmail.com> |
Sat, 31 Jan 2009 12:35:40 +0000 | |
changeset 1103 | 794162cfca92 |
parent 1102 | 8765079db045 |
child 1104 | 02997d6661fa |
--- 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()