diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-14 04:58:34 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-14 04:58:34 -0400 |
| commit | fb90f0166728af40142ed9a31039d26ca3f97c73 (patch) | |
| tree | 16129d464b3533bfd782f53196dd0052f10c1f57 /docs/narr/traversal.rst | |
| parent | b8a946f9278ead62c38732e7237278adb65303be (diff) | |
| download | pyramid-fb90f0166728af40142ed9a31039d26ca3f97c73.tar.gz pyramid-fb90f0166728af40142ed9a31039d26ca3f97c73.tar.bz2 pyramid-fb90f0166728af40142ed9a31039d26ca3f97c73.zip | |
- The ``route_url``, ``route_path``, ``resource_url``, ``static_url``, and
``current_route_url`` functions in the ``pyramid.url`` package now delegate
to a method on the request they've been passed, instead of the other way
around. The pyramid.request.Request object now inherits from a mixin named
pyramid.url.URLMethodsMixin to make this possible, and all url/path
generation logic is embedded in this mixin.
- Narrative and API documentation which used the ``route_url``,
``route_path``, ``resource_url``, ``static_url``, and ``current_route_url``
functions in the ``pyramid.url`` package have now been changed to use
eponymous methods of the request instead.
Diffstat (limited to 'docs/narr/traversal.rst')
| -rw-r--r-- | docs/narr/traversal.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/traversal.rst b/docs/narr/traversal.rst index aa36b4455..ef875c8f0 100644 --- a/docs/narr/traversal.rst +++ b/docs/narr/traversal.rst @@ -565,6 +565,6 @@ See the :ref:`view_config_chapter` chapter for detailed information about The :mod:`pyramid.traversal` module contains API functions that deal with traversal, such as traversal invocation from within application code. -The :func:`pyramid.url.resource_url` function generates a URL when given a -resource retrieved from a resource tree. +The :meth:`pyramid.request.Request.resource_url` method generates a URL when +given a resource retrieved from a resource tree. |
