summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-27 01:08:29 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-27 01:08:29 +0000
commit9a9af812bc56fada307c784173dab9045f7d70a2 (patch)
treefda39c09b52bdd237d5578314879e4d88b936c72
parentcf58abfad8af31e9bf8836d78858de08267b4216 (diff)
downloadpyramid-9a9af812bc56fada307c784173dab9045f7d70a2.tar.gz
pyramid-9a9af812bc56fada307c784173dab9045f7d70a2.tar.bz2
pyramid-9a9af812bc56fada307c784173dab9045f7d70a2.zip
Docstring.
-rw-r--r--repoze/bfg/url.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/repoze/bfg/url.py b/repoze/bfg/url.py
index 066feae22..5defa96a9 100644
--- a/repoze/bfg/url.py
+++ b/repoze/bfg/url.py
@@ -15,8 +15,8 @@ def route_url(route_name, request, *elements, **kw):
Use the request object as the first positional argument. Use the
route's ``name`` as the second positional argument. Additional
- keyword elements are appended to the URL as path segments after it
- is generated.
+ positional arguments are appended to the URL as path segments
+ after it is generated.
Use keyword arguments to supply values which match any dynamic
path elements in the route definition. Raises a KeyError
@@ -79,9 +79,9 @@ def route_url(route_name, request, *elements, **kw):
will always follow the query element,
e.g. ``http://example.com?foo=1#bar``.
- This function raises a ``KeyError`` if the route cannot be
- generated due to missing replacement names. Extra replacement
- names are ignored.
+ This function raises a ``KeyError`` if the URL cannot be generated
+ due to missing replacement names. Extra replacement names are
+ ignored.
"""
mapper = getUtility(IRoutesMapper)
path = mapper.generate(route_name, kw) # raises KeyError if generate fails