@@ -64,12 +64,15 @@ class ErrorController(BaseController):
'protocol': e.get('wsgi.url_scheme'),
'host': e.get('HTTP_HOST'), }
if resp:
c.error_message = cgi.escape(request.GET.get('code',
str(resp.status)))
c.error_explanation = self.get_error_explanation(resp.status_int)
else:
c.error_message = _('No response')
c.error_explanation = _('Unknown error')
return render('/errors/error_document.html')
def img(self, id):
"""Serve Pylons' stock images"""
return self._serve_file(os.path.join(media_path, 'img', id))
Status change: