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/cgitb_catcher.py | |
parent | e93b9697478f5ac16807a17ec20e506052e320ae (diff) | |
download | paste-37cd7d8a21010fe8d82c11f47aea9efd531d5c62.tar.gz |
Removed Paste Deploy dependencies in many places
Diffstat (limited to 'paste/cgitb_catcher.py')
-rw-r--r-- | paste/cgitb_catcher.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/paste/cgitb_catcher.py b/paste/cgitb_catcher.py index 246adba..80bde5d 100644 --- a/paste/cgitb_catcher.py +++ b/paste/cgitb_catcher.py @@ -12,7 +12,6 @@ for more. import cgitb from cStringIO import StringIO import sys -from paste.deploy import converters class NoDefault: pass @@ -25,10 +24,15 @@ class CgitbMiddleware(object): logdir=None, context=5, format="html"): + # @@: global_conf should only be present in a seperate + # function for the entry point self.app = app if display is NoDefault: display = global_conf.get('debug') - self.display = converters.asbool(display) + if isinstance(display, basestring): + from paste.deploy import converters + display = converters.asbool(display) + self.display = display self.logdir = logdir self.context = int(context) self.format = format |