summaryrefslogtreecommitdiff
path: root/paste/errormiddleware.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-05-17 23:26:06 +0000
committerianb <devnull@localhost>2005-05-17 23:26:06 +0000
commit9080910c4f45fff75c4bb3a15efba53d5f3162bd (patch)
treee1d207fc4ff94ea8148a88e7d4eb6a25f3360fe9 /paste/errormiddleware.py
parentb6333394ade881c436cb39e209ca319e2285a3b4 (diff)
downloadpaste-9080910c4f45fff75c4bb3a15efba53d5f3162bd.tar.gz
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)
Diffstat (limited to 'paste/errormiddleware.py')
-rw-r--r--paste/errormiddleware.py34
1 files changed, 1 insertions, 33 deletions
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 '''
<html>
<head>
- <style type="text/css">%s</style>
<title>Server Error</title>
</head>
<body>
@@ -231,35 +230,4 @@ def error_template(exception, extra):
%s
%s
</body>
- </html>''' % (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;
-}
-"""
+ </html>''' % (exception, extra)