durusmail: quixote-users: SVN: r24267 - trunk/quixote
SVN: r24267 - trunk/quixote
SVN: r24267 - trunk/quixote
Neil Schemenauer
2004-05-18
Author: nascheme
Date: 2004-05-18 15:33:04 -0400 (Tue, 18 May 2004)
New Revision: 24267

Modified:
   trunk/quixote/errors.py
   trunk/quixote/http_response.py
   trunk/quixote/publish.py
Log:
Use plain text for the content of redirections.  It's extremely unlikely
that they will be seen anyhow.  Use a modern DOCTYPE declaration for
other pages that Quixote itself generates.


Modified: trunk/quixote/errors.py
===================================================================
--- trunk/quixote/errors.py     2004-05-18 18:01:03 UTC (rev 24266)
+++ trunk/quixote/errors.py     2004-05-18 19:33:04 UTC (rev 24267)
@@ -158,6 +158,8 @@
     traversing the path.
     """
     return htmltext("""\
+    
     
       Error: %s
       

Modified: trunk/quixote/http_response.py
===================================================================
--- trunk/quixote/http_response.py      2004-05-18 18:01:03 UTC (rev 24266)
+++ trunk/quixote/http_response.py      2004-05-18 19:33:04 UTC (rev 24267)
@@ -275,22 +275,9 @@
             status = 302
         self.set_status(status)
         self.headers['location'] = location
+        self.set_content_type('text/plain')
+        return "Your browser should have redirected you to %s" % location

-        doc = """\
-
- Redirect to %(location)s
- 
- 

Redirect

-

Your browser should have redirected you to -

%(location)s
-

- - -""" % vars() - - return doc - - def _gen_cookie_headers (self): """_gen_cookie_headers() -> [string] Modified: trunk/quixote/publish.py =================================================================== --- trunk/quixote/publish.py 2004-05-18 18:01:03 UTC (rev 24266) +++ trunk/quixote/publish.py 2004-05-18 19:33:04 UTC (rev 24267) @@ -38,7 +38,8 @@ # plugged in here -- we can't do it now because the environment isn't # really setup for us yet if running as a FastCGI script. INTERNAL_ERROR_MESSAGE = """\ - + Internal Server Error
reply