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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py
index becde3ea2..458f1a7a5 100644
--- a/repoze/bfg/urldispatch.py
+++ b/repoze/bfg/urldispatch.py
@@ -51,9 +51,10 @@ class RoutesMapper(object):
match = route.match(path)
if match is not None:
preds = route.predicates
- if preds and not all((p(None, request) for p in preds)):
+ info = {'route':route, 'match':match}
+ if preds and not all((p(info, request) for p in preds)):
continue
- return {'route':route, 'match':match}
+ return info
return {'route':None, 'match':None}