--- a/app/soc/views/models/base.py Mon Aug 10 15:49:47 2009 -0700
+++ b/app/soc/views/models/base.py Mon Aug 10 16:35:01 2009 -0700
@@ -393,6 +393,8 @@
return helper.responses.errorResponse(
error, request, context=context)
+ self._edit(request, entity, context, params)
+
if request.method == 'POST':
return self.editPost(request, entity, context, params=params)
else:
@@ -832,6 +834,17 @@
return True
+ def _edit(self, request, entity, context, params):
+ """Hook for the edit View.
+
+ Args:
+ request: the Django request object
+ entity: entity being edited
+ context: context for the View
+ params: params for the View
+ """
+ pass
+
def _editGet(self, request, entity, form):
"""Performs any required processing on the form to get its edit page.