summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/urldispatch.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py
index 458f1a7a5..51b6f9f84 100644
--- a/repoze/bfg/urldispatch.py
+++ b/repoze/bfg/urldispatch.py
@@ -51,7 +51,10 @@ class RoutesMapper(object):
match = route.match(path)
if match is not None:
preds = route.predicates
- info = {'route':route, 'match':match}
+ # NB: it is the intent that only 'match' be relied on
+ # by built-in predicates. 'route' and 'mapper' may be
+ # used by custom predicates.
+ info = {'match':match, 'route':route}
if preds and not all((p(info, request) for p in preds)):
continue
return info