diff options
author | ianb <devnull@localhost> | 2006-08-19 23:23:41 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-08-19 23:23:41 +0000 |
commit | 37cd7d8a21010fe8d82c11f47aea9efd531d5c62 (patch) | |
tree | 0747fe666bba763f9984db38600f8a88f58d32a7 /paste/debug | |
parent | e93b9697478f5ac16807a17ec20e506052e320ae (diff) | |
download | paste-37cd7d8a21010fe8d82c11f47aea9efd531d5c62.tar.gz |
Removed Paste Deploy dependencies in many places
Diffstat (limited to 'paste/debug')
-rw-r--r-- | paste/debug/prints.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/paste/debug/prints.py b/paste/debug/prints.py index c624669..c971895 100644 --- a/paste/debug/prints.py +++ b/paste/debug/prints.py @@ -23,7 +23,6 @@ import cgi from paste.util import threadedprint from paste import wsgilib from paste import response -from paste.deploy.converters import asbool _threadedprint_installed = False @@ -64,9 +63,14 @@ class PrintDebugMiddleware(object): def __init__(self, app, global_conf=None, force_content_type=False, print_wsgi_errors=True): + # @@: global_conf should be handled separately and only for + # the entry point self.app = app self.force_content_type = force_content_type - self.print_wsgi_errors = asbool(print_wsgi_errors) + if isinstance(print_wsgi_errors, basestring): + from paste.deploy.converters import asbool + print_wsgi_errors = asbool(print_wsgi_errors) + self.print_wsgi_errors = print_wsgi_errors def __call__(self, environ, start_response): global _threadedprint_installed |