summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-06-30 17:24:23 +0000
committerChris McDonough <chrism@agendaless.com>2010-06-30 17:24:23 +0000
commit23ab84757a4d216a7c5eea77e85aedfd3a9400ca (patch)
tree2c1718d303af84f09103603e0d8b2c3f8c1a446d /repoze
parent44bc118a61e2e9d93a65b8edd5be9118fb478741 (diff)
downloadpyramid-23ab84757a4d216a7c5eea77e85aedfd3a9400ca.tar.gz
pyramid-23ab84757a4d216a7c5eea77e85aedfd3a9400ca.tar.bz2
pyramid-23ab84757a4d216a7c5eea77e85aedfd3a9400ca.zip
pass only match and route and document route minimally
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