From 4eafaa0f6238ff0bd64729827e5974326fa6f60b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 10 Nov 2010 19:31:42 -0500 Subject: - New API methods for ``pyramid.request.Request``: ``model_url`` and ``route_url``. These are simple passthroughs for their respective functions in ``pyramid.url``. - Documented the ``matchdict`` and ``matched_route`` attributes of the request object in the Request API documentation. --- docs/api/request.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs/api/request.rst') diff --git a/docs/api/request.rst b/docs/api/request.rst index 90dc2e26e..acd66ccf8 100644 --- a/docs/api/request.rst +++ b/docs/api/request.rst @@ -97,4 +97,19 @@ The template context for Pylons-style applications. + .. attribute:: matchdict + + If a :term:`route` has matched during this request, this attribute will + be a dictionary containing the values matched by the URL pattern + associated with the route. If a route has not matched during this + request, the value of this attribute will be ``None``. See + :ref:`matchdict`. + + .. attribute:: matched_route + + If a :term:`route` has matched during this request, this attribute will + be an obect representing the route matched by the URL pattern + associated with the route. If a route has not matched during this + request, the value of this attribute will be ``None``. See + :ref:`matched_route`. -- cgit v1.2.3