summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorcce <devnull@localhost>2005-12-13 08:30:20 +0000
committercce <devnull@localhost>2005-12-13 08:30:20 +0000
commit69137a1f1bfea71fcaf755bd030574a0e1befa3b (patch)
treefcfc7f7722ae691f29d989da1c2d1b7a0ec5c520 /paste
parente6d3daa93b95a5597575eb466b3a580ff26bb810 (diff)
downloadpaste-69137a1f1bfea71fcaf755bd030574a0e1befa3b.tar.gz
- redirects should include comments
- testserver was importing wrong modules
Diffstat (limited to 'paste')
-rwxr-xr-xpaste/debug/testserver.py8
-rw-r--r--paste/httpexceptions.py2
2 files changed, 3 insertions, 7 deletions
diff --git a/paste/debug/testserver.py b/paste/debug/testserver.py
index 832142c..8e0dd98 100755
--- a/paste/debug/testserver.py
+++ b/paste/debug/testserver.py
@@ -11,7 +11,7 @@ where using raw_interactive won't do.
"""
import time
-from paste.util.testserver import *
+from paste.util.baseserver import *
class WSGIRegressionServer(WSGIServer):
"""
@@ -63,11 +63,7 @@ class WSGIRegressionServer(WSGIServer):
def serve(application, host=None, port=None, handler=None):
server = WSGIRegressionServer(application,host,port,handler)
print "serving on %s:%s" % server.server_address
- try:
- server.serve_forever()
- except KeyboardInterrupt:
- # allow CTRL+C to shutdown
- pass
+ server.serve_forever()
return server
if __name__ == '__main__':
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py
index af0b7ea..ebb67fe 100644
--- a/paste/httpexceptions.py
+++ b/paste/httpexceptions.py
@@ -267,7 +267,7 @@ class _HTTPMove(HTTPRedirection):
template = (
'%(explanation)s <a href="%(location)s">%(location)s</a>;\n'
'you should be redirected automatically.\n'
- '%(detail)s\n')
+ '%(detail)s\n<!-- %(comment)s -->')
def __init__(self, detail=None, headers=None, comment=None):
assert isinstance(headers, (type(None), list))