Brown paperbag fix in recent cycle breaking
Self is no longer used, 'error' should be used instead.
Patch by: Sverre Rabbelier
--- a/app/soc/views/helper/responses.py Tue Dec 02 17:59:44 2008 +0000
+++ b/app/soc/views/helper/responses.py Tue Dec 02 18:48:42 2008 +0000
@@ -139,7 +139,7 @@
return http.HttpResponseRedirect(path)
-def errorResponse(self, error, request, template=None, context=None):
+def errorResponse(error, request, template=None, context=None):
"""Creates an HTTP response from the soc.views.out_of_band.Error exception.
Args:
@@ -167,7 +167,7 @@
if not context.get('message'):
# supplied context did not explicitly override the message
- context['message'] = self.message_fmt % context
+ context['message'] = error.message_fmt % context
return respond(request, sibling_templates, context=context,
response_args=error.response_args)
\ No newline at end of file