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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py
index dcd4af208..591a91c57 100644
--- a/repoze/bfg/urldispatch.py
+++ b/repoze/bfg/urldispatch.py
@@ -37,7 +37,6 @@ class RoutesRootFactory(Mapper):
args = None
if isinstance(args, dict): # might be an empty dict
args = args.copy()
- routepath = route.routepath
config = request_config()
config.mapper = self
config.mapper_dict = args
@@ -47,6 +46,8 @@ class RoutesRootFactory(Mapper):
environ['wsgiorg.routing_args'] = ((), args)
environ['bfg.routes.route'] = route
environ['bfg.routes.matchdict'] = args
+ adhoc_attrs = environ.setdefault('webob.adhoc_attrs', {})
+ adhoc_attrs['matchdict'] = args
# this is stolen from routes.middleware; if the route map
# has a *path_info capture, use it to influence the path
# info and script_name of the generated environment