summaryrefslogtreecommitdiff
path: root/paste/urlparser.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-07-03 18:13:49 +0000
committerianb <devnull@localhost>2005-07-03 18:13:49 +0000
commitb164c44549e6a129fca8369ebfae49630f881ecf (patch)
tree3d7bb03dbfee2e168d3f364cc773d8319d8c3045 /paste/urlparser.py
parent2c29cc3a3f0d2775f2fbc6b46552d6f8d9ec51f6 (diff)
downloadpaste-b164c44549e6a129fca8369ebfae49630f881ecf.tar.gz
Another bug fix from the refactoring
Diffstat (limited to 'paste/urlparser.py')
-rw-r--r--paste/urlparser.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/paste/urlparser.py b/paste/urlparser.py
index 2fd52c1..5e2d3a3 100644
--- a/paste/urlparser.py
+++ b/paste/urlparser.py
@@ -142,17 +142,16 @@ class URLParser(object):
environ['SCRIPT_NAME'] = orig_script_name
return not_found_hook(environ, start_response)
if filename is None:
+ name, rest_of_path = wsgilib.path_info_split(environ['PATH_INFO'])
if not name:
- desc = 'one of %s' % ', '.join(
+ name = 'one of %s' % ', '.join(
self.option(environ, 'index_names') or
['(no index_names defined)'])
- else:
- desc = name
return self.not_found(
environ, start_response,
'Tried to load %s from directory %s'
- % (desc, self.directory))
+ % (name, self.directory))
else:
environ['wsgi.errors'].write(
'Found resource %s, but could not construct application\n'