diff options
Diffstat (limited to 'repoze/bfg/wsgi.py')
| -rw-r--r-- | repoze/bfg/wsgi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/repoze/bfg/wsgi.py b/repoze/bfg/wsgi.py index 3991d3344..545b3e93c 100644 --- a/repoze/bfg/wsgi.py +++ b/repoze/bfg/wsgi.py @@ -71,11 +71,11 @@ def wsgiapp2(wrapped): """ def decorator(context, request): traversed = request.traversed - vroot_path = request.virtual_root_path or [] + vroot_path = request.virtual_root_path or () view_name = request.view_name subpath = request.subpath or () - script_list = traversed[len(vroot_path):] - script_list = [ quote_path_segment(name) for name in script_list ] + script_tuple = traversed[len(vroot_path):] + script_list = [ quote_path_segment(name) for name in script_tuple ] if view_name: script_list.append(quote_path_segment(view_name)) script_name = '/' + '/'.join(script_list) |
