--- a/app/soc/views/models/group_app.py Fri Feb 13 13:35:31 2009 +0000
+++ b/app/soc/views/models/group_app.py Fri Feb 13 16:40:02 2009 +0000
@@ -195,7 +195,12 @@
index += 1
# call the _list method from base to display the list
- return self._list(request, params, contents, page_name)
+ if kwargs['context']:
+ context = kwargs['context']
+ else:
+ context = {}
+
+ return self._list(request, params, contents, page_name, context=context)
@decorators.merge_params
@@ -260,6 +265,7 @@
fields = {'status' : status_value}
self._logic.updateEntityProperties(entity, fields)
+ self._review(request, params, entity, status_value, **kwargs)
if status_value == 'accepted':
# the application has been accepted send out a notification
@@ -287,6 +293,19 @@
page_name=page_name, params=params, **kwargs)
+ def _review(self, request, params, app_entity, status, **kwargs):
+ """Does any required post review processing.
+
+ Args:
+ request: the standard Django HTTP request object
+ params: a dict with params for this View
+ app_entity: The update application entity
+ status: The status that was given to the reviewed app_entity
+
+ """
+ pass
+
+
@decorators.merge_params
@decorators.check_access
def reviewOverview(self, request, access_type,