quixote errors.py,1.20,1.21
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/cvs/quixote
In directory hewson:/tmp/cvs-serv20302
Modified Files:
errors.py
Log Message:
Add htmltext support.
Index: errors.py
===================================================================
RCS file: /home/cvs/quixote/errors.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- errors.py 27 Sep 2002 20:15:58 -0000 1.20
+++ errors.py 14 Oct 2002 22:58:12 -0000 1.21
@@ -2,7 +2,7 @@
Exception classes used by Quixote
"""
-from quixote.html import html_quote
+from quixote.html import htmltext
__revision__ = "$Id$"
@@ -151,7 +151,7 @@
handler called if no '_q_exception_handler' function was found while
traversing the path.
"""
- return """\
+ return htmltext("""\
<html>
<head><title>Error: %s</title></head>
<body>
@@ -159,6 +159,4 @@
<p>%s</p>
</body>
</html>
- """ % (html_quote(exc.title),
- html_quote(exc.description),
- html_quote(exc.format(request)))
+ """) % (exc.title, exc.description, exc.format(request))