From 90ed75671bab9728f1ac82c204e55675b2838464 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 13 May 2011 03:54:07 -0400 Subject: fix IRouteMapper interface to match reality --- pyramid/interfaces.py | 5 +++-- 1 file 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. -- cgit v1.2.3