From 2871093f61b6176cd49b23abd2582b8184bc60c1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 20 Aug 2011 11:38:10 -0400 Subject: fix current_route_path example --- pyramid/url.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyramid/url.py b/pyramid/url.py index 73ffdbe25..77647fcf8 100644 --- a/pyramid/url.py +++ b/pyramid/url.py @@ -440,11 +440,10 @@ class URLMethodsMixin(object): the return value; only the script_name, path, query parameters, and anchor data are present in the returned string. - For example, if the route matched by the current request is named - 'foobar' with the path ``/{foo}/{bar}``, this call to - ``current_route_path``:: + For example, if the route matched by the current request has the + pattern ``/{foo}/{bar}``, this call to ``current_route_path``:: - request.route_path(foo='1', bar='2') + request.current_route_path(foo='1', bar='2') Will return the string ``/1/2``. -- cgit v1.2.3