From 9080910c4f45fff75c4bb3a15efba53d5f3162bd Mon Sep 17 00:00:00 2001 From: ianb Date: Tue, 17 May 2005 23:26:06 +0000 Subject: Made HTML backward compatible with non-JS browsers (which describes most email programs; embed CSS in all HTML errors messages (since it makes them prettier) --- paste/errormiddleware.py | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'paste/errormiddleware.py') diff --git a/paste/errormiddleware.py b/paste/errormiddleware.py index f3ef73d..f077073 100644 --- a/paste/errormiddleware.py +++ b/paste/errormiddleware.py @@ -223,7 +223,6 @@ def error_template(exception, extra): return ''' - Server Error @@ -231,35 +230,4 @@ def error_template(exception, extra): %s %s - ''' % (css, exception, extra) - -css = """ -table { - width: 100%; -} - -tr.header { - background-color: #006; - color: #fff; -} - -tr.even { - background-color: #ddd; -} - -table.variables td { - verticle-align: top; - overflow: auto; -} - -a.button { - background-color: #ccc; - border: 2px outset #aaa; - color: #000; - text-decoration: none; -} - -a.button:hover { - background-color: #ddd; -} -""" + ''' % (exception, extra) -- cgit v1.2.1