equal
deleted
inserted
replaced
176 |
176 |
177 def errorResponse(error, request, template=None, context=None): |
177 def errorResponse(error, request, template=None, context=None): |
178 """Creates an HTTP response from the soc.views.out_of_band.Error exception. |
178 """Creates an HTTP response from the soc.views.out_of_band.Error exception. |
179 |
179 |
180 Args: |
180 Args: |
181 errror: a out_of_band.Error object |
181 error: a out_of_band.Error object |
182 request: a Django HTTP request |
182 request: a Django HTTP request |
183 template: the "sibling" template (or a search list of such templates) |
183 template: the "sibling" template (or a search list of such templates) |
184 from which to construct the actual template name (or names) |
184 from which to construct the actual template name (or names) |
185 context: optional context dict supplied to the template, which is |
185 context: optional context dict supplied to the template, which is |
186 modified (so supply a copy if such modification is not acceptable) |
186 modified (so supply a copy if such modification is not acceptable) |