Chris McDonough
2010-11-18 2c9d148493aaa977c69e77072466685a3367ad0b
refs
author Chris McDonough <chrism@plope.com>
Thursday, November 18, 2010 00:48 +0100
committer Chris McDonough <chrism@plope.com>
Thursday, November 18, 2010 00:48 +0100
commit2c9d148493aaa977c69e77072466685a3367ad0b
tree 393cf2131d6470b8b27c7bdd0de98635d2dba162 tree | zip | gz
parent 20fa5619608f55ab85d431de4d806f7f337c5384 view | diff
- Add a ``pyramid.url.route_path`` API, allowing folks to generate relative
URLs. Calling ``route_path`` is the same as calling
``pyramid.url.route_url`` with the argument ``_app_url`` equal to the empty
string.

- Add a ``pyramid.request.Request.route_path`` API. This is a convenience
method of the request which calls ``pyramid.url.route_url``.
7 files modified
126 ■■■■■ changed files
CHANGES.txt 11 ●●●●● diff | view | raw | blame | history
TODO.txt 5 ●●●●● diff | view | raw | blame | history
docs/api/url.rst 2 ●●●●● diff | view | raw | blame | history
pyramid/request.py 43 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_request.py 17 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_url.py 21 ●●●●● diff | view | raw | blame | history
pyramid/url.py 27 ●●●●● diff | view | raw | blame | history