equal
deleted
inserted
replaced
29 |
29 |
30 from google.appengine.ext import db |
30 from google.appengine.ext import db |
31 |
31 |
32 from django.utils.translation import ugettext |
32 from django.utils.translation import ugettext |
33 |
33 |
|
34 from soc.cache import sidebar |
34 from soc.logic import dicts |
35 from soc.logic import dicts |
35 from soc.views import out_of_band |
36 from soc.views import out_of_band |
36 |
37 |
37 |
38 |
38 class Error(Exception): |
39 class Error(Exception): |
106 |
107 |
107 return True |
108 return True |
108 |
109 |
109 def _onCreate(self, entity): |
110 def _onCreate(self, entity): |
110 """Called when an entity has been created. |
111 """Called when an entity has been created. |
111 |
112 |
112 Classes that override this can use it to do any post-creation operations. |
113 Classes that override this can use it to do any post-creation operations. |
113 """ |
114 """ |
114 |
115 |
115 pass |
116 sidebar.flush() |
116 |
117 |
117 def _onUpdate(self, entity): |
118 def _onUpdate(self, entity): |
118 """Called when an entity has been updated. |
119 """Called when an entity has been updated. |
119 |
120 |
120 Classes that override this can use it to do any post-update operations. |
121 Classes that override this can use it to do any post-update operations. |