Implement generic error pages
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 29 Nov 2012 07:57:12 +0000 (08:57 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 29 Nov 2012 08:01:08 +0000 (09:01 +0100)
commit6b5f1ca79b42b977ea5f436ac7ab329fd2da1b6b
treea687adb129f8e45dcf5ec66463532a9ceb753ac9
parentefb70b529f3c04054e4453144155b18a8400281b
Implement generic error pages

Rather than having a 404.html, a 403.html, a 500.html,...
we have a generic error.html template that we pass in an
error code, a title and a (html'ish) error message.

Implement the common render_404 and render_403 shortcuts. More exotic
cases can be achieved by the generic render_error function.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/templates/mediagoblin/error.html [moved from mediagoblin/templates/mediagoblin/404.html with 70% similarity]
mediagoblin/tools/response.py