summaryrefslogtreecommitdiff
path: root/paste/printdebug.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-08-22 22:06:47 +0000
committerianb <devnull@localhost>2005-08-22 22:06:47 +0000
commit467705922e042dfc0c5f41c36115422f86c613ae (patch)
tree5c4f1754399539427c284984d6ce934cb2fc9042 /paste/printdebug.py
parentf1ad4435a305fc37243560a0b92d657a5acaf02b (diff)
downloadpaste-467705922e042dfc0c5f41c36115422f86c613ae.tar.gz
paste.deployified printdebug
Diffstat (limited to 'paste/printdebug.py')
-rw-r--r--paste/printdebug.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/printdebug.py b/paste/printdebug.py
index 83250ab..95630e3 100644
--- a/paste/printdebug.py
+++ b/paste/printdebug.py
@@ -37,8 +37,8 @@ class PrintDebugMiddleware(object):
'<b style="border-bottom: 1px solid #000">Log messages</b><br>'
'%s</pre>')
- def __init__(self, subapp, force_content_type=False):
- self.subapp = subapp
+ def __init__(self, app, global_conf=None, force_content_type=False):
+ self.app = app
self.force_content_type = force_content_type
def __call__(self, environ, start_response):
@@ -57,7 +57,7 @@ class PrintDebugMiddleware(object):
try:
threadedprint.register(replacement_stdout)
status, headers, body = wsgilib.capture_output(
- environ, start_response, self.subapp)
+ environ, start_response, self.app)
if status is None:
# Some error occurred
status = '500 Server Error'