summaryrefslogtreecommitdiff
path: root/repoze/bfg/urldispatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/urldispatch.py')
-rw-r--r--repoze/bfg/urldispatch.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py
index 4c3bc2ed3..3e60c0ba5 100644
--- a/repoze/bfg/urldispatch.py
+++ b/repoze/bfg/urldispatch.py
@@ -154,7 +154,9 @@ class RoutesModelTraverser(object):
if environ['SCRIPT_NAME'].endswith('/'):
environ['SCRIPT_NAME'] = environ['SCRIPT_NAME'][:-1]
- return self.context, route.name, subpath, None, self.context, None
+ return dict(context=self.context, view_name=route.name,
+ subpath=subpath, traversed=None, virtual_root=self.context,
+ virtual_root_path=None, root=self.context)
class RoutesContextURL(object):
""" The IContextURL adapter used to generate URLs for a context