summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-08-20 11:38:10 -0400
committerChris McDonough <chrism@plope.com>2011-08-20 11:38:10 -0400
commit2871093f61b6176cd49b23abd2582b8184bc60c1 (patch)
tree79319f2985be4a0b9917dcdd531d132ecc8c4c6b
parent2a44e0d88013debbc384c509b020a850830b93e8 (diff)
downloadpyramid-2871093f61b6176cd49b23abd2582b8184bc60c1.tar.gz
pyramid-2871093f61b6176cd49b23abd2582b8184bc60c1.tar.bz2
pyramid-2871093f61b6176cd49b23abd2582b8184bc60c1.zip
fix current_route_path example
-rw-r--r--pyramid/url.py7
1 files 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``.