summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-05-13 03:54:07 -0400
committerChris McDonough <chrism@plope.com>2011-05-13 03:54:07 -0400
commit90ed75671bab9728f1ac82c204e55675b2838464 (patch)
tree6505cfbf09f25ae918071186875c739afd50c967
parente725cf6f3290a5fa974230d6c5c82eed3358bcf2 (diff)
downloadpyramid-90ed75671bab9728f1ac82c204e55675b2838464.tar.gz
pyramid-90ed75671bab9728f1ac82c204e55675b2838464.tar.bz2
pyramid-90ed75671bab9728f1ac82c204e55675b2838464.zip
fix IRouteMapper interface to match reality
-rw-r--r--pyramid/interfaces.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py
index 07812e0cd..d200d15cf 100644
--- a/pyramid/interfaces.py
+++ b/pyramid/interfaces.py
@@ -439,7 +439,8 @@ class IRoutesMapper(Interface):
""" Returns an ``IRoute`` object if a route with the name ``name``
was registered, otherwise return ``None``."""
- def connect(name, pattern, factory=None, predicates=()):
+ def connect(name, pattern, factory=None, predicates=(), pregenerator=None,
+ static=True):
""" Add a new route. """
def generate(name, kw):
@@ -451,7 +452,7 @@ class IRoutesMapper(Interface):
the request; the ``route`` key of this dictionary will either
be a Route object or ``None`` if no route matched; the
``match`` key will be the matchdict or ``None`` if no route
- matched."""
+ matched. Static routes will not be considered for matching. """
class IContextURL(Interface):
""" An adapter which deals with URLs related to a context.