diff options
author | ianb <devnull@localhost> | 2006-08-19 23:27:38 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-08-19 23:27:38 +0000 |
commit | 4a2d8b4451c1b1cb518d1c52d9937350ce3b4cf3 (patch) | |
tree | a8e6d49ae8b3c98ea70af0ef4b5388a26c5c8844 /paste/cgiapp.py | |
parent | 2f8f986f03a1926957332d66bf6f0267b895349f (diff) | |
download | paste-4a2d8b4451c1b1cb518d1c52d9937350ce3b4cf3.tar.gz |
Changed the CGIApplication signature back to what it was.
Diffstat (limited to 'paste/cgiapp.py')
-rw-r--r-- | paste/cgiapp.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/paste/cgiapp.py b/paste/cgiapp.py index 39c563d..ff9da3a 100644 --- a/paste/cgiapp.py +++ b/paste/cgiapp.py @@ -30,24 +30,19 @@ class CGIApplication(object): """ def __init__(self, + global_conf, script, - global_conf=None, path=None, include_os_environ=True, query_string=None): - if global_conf is not None: + if global_conf: raise NotImplemented( "global_conf is no longer supported for CGIApplication " - "(use make_cgi_application)") - if isinstance(script, dict): - # Another sign of global_conf - raise NotImplemented( - "CGIApplication no longer takes a global_conf argument " - "(use make_cgi_application or remove that argument)") + "(use make_cgi_application); please pass None instead") self.script_filename = script if path is None: path = os.environ.get('PATH', '').split(':') - self.path = converters.aslist(path, ':') + self.path = path if '?' in script: assert query_string is None, ( "You cannot have '?' in your script name (%r) and also " @@ -65,7 +60,7 @@ class CGIApplication(object): % (script, self.path)) else: self.script = script - self.include_os_environ = converters.asbool(include_os_environ) + self.include_os_environ = include_os_environ self.query_string = query_string def __call__(self, environ, start_response): |