diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-03 03:10:15 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-03 03:10:15 -0500 |
| commit | 5653d13e554433adf34fd81b2c6593a54e7c4ea1 (patch) | |
| tree | 4729e7ff7778d05c5d4f73818343b7bd70fb8b09 /docs | |
| parent | 83373586ea80ea5057da5fc4ede43278af47a318 (diff) | |
| download | pyramid-5653d13e554433adf34fd81b2c6593a54e7c4ea1.tar.gz pyramid-5653d13e554433adf34fd81b2c6593a54e7c4ea1.tar.bz2 pyramid-5653d13e554433adf34fd81b2c6593a54e7c4ea1.zip | |
- Add a new API ``pyramid.url.current_route_url``, which computes a URL based
on the "current" route (if any) and its matchdict values.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/url.rst | 2 | ||||
| -rw-r--r-- | docs/glossary.rst | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/api/url.rst b/docs/api/url.rst index 1aa3082b7..01be76283 100644 --- a/docs/api/url.rst +++ b/docs/api/url.rst @@ -9,6 +9,8 @@ .. autofunction:: route_url + .. autofunction:: current_route_url + .. autofunction:: route_path .. autofunction:: static_url diff --git a/docs/glossary.rst b/docs/glossary.rst index ce2d77d8d..890f7e837 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -857,3 +857,8 @@ Glossary view argument and return value mapping. This is a plug point for extension builders, not normally used by "civilians". + matchdict + The dictionary attached to the :term:`request` object as + ``request.matchdict`` when a :term:`URL dispatch` route has been matched. + Its keys are names as identified within the route pattern; its values are + the values matched by each pattern name. |
