diff options
author | bbangert <devnull@localhost> | 2005-12-13 23:24:11 +0000 |
---|---|---|
committer | bbangert <devnull@localhost> | 2005-12-13 23:24:11 +0000 |
commit | f390c28caeb9e245cd4fc4db0466534f42f18717 (patch) | |
tree | 392027590c03d1ea5ddd5c9db292405e62e3a529 /paste/urlparser.py | |
parent | 7c0990495ffbf7765b5b8130012b8d27d1c56d34 (diff) | |
download | paste-f390c28caeb9e245cd4fc4db0466534f42f18717.tar.gz |
Using new paste.request lib
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r-- | paste/urlparser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py index 47e89aa..3c380b6 100644 --- a/paste/urlparser.py +++ b/paste/urlparser.py @@ -7,6 +7,7 @@ import imp import pkg_resources import mimetypes import wsgilib +import request from paste.util import import_string from paste.deploy import converters import httpexceptions @@ -420,7 +421,7 @@ class StaticURLParser(object): # @@: This should obviously be configurable filename = 'index.html' else: - filename = wsgilib.path_info_pop(environ) + filename = request.path_info_pop(environ) full = os.path.join(self.directory, filename) if not os.path.exists(full): return self.not_found(environ, start_response) @@ -449,7 +450,7 @@ class StaticURLParser(object): def not_found(self, environ, start_response, debug_message=None): exc = httpexceptions.HTTPNotFound( 'The resource at %s could not be found' - % wsgilib.construct_url(environ), + % request.construct_url(environ), comment='SCRIPT_NAME=%r; PATH_INFO=%r; looking in %r; debug: %s' % (environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'), self.directory, debug_message or '(none)')) |