From 72ad3374afb491d652e2a22951b09ca399c8d0c5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 21 Jan 2011 02:01:18 -0500 Subject: - Add docs for ``add_finished_callback``, ``add_response_callback``, ``route_path``, ``route_url``, and ``static_url`` methods to ``pyramid.request.Request`` API docs. --- docs/api/request.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/api/request.rst') diff --git a/docs/api/request.rst b/docs/api/request.rst index 13b434a51..912634b62 100644 --- a/docs/api/request.rst +++ b/docs/api/request.rst @@ -113,3 +113,15 @@ request, the value of this attribute will be ``None``. See :ref:`matched_route`. + .. automethod:: add_response_callback + + .. automethod:: add_finished_callback + + .. automethod:: route_url + + .. automethod:: route_path + + .. automethod:: resource_url + + .. automethod:: static_url + -- cgit v1.2.3 From 9fd15137314f304559479c1846d930a36b0e772e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 9 Mar 2011 01:21:00 -0500 Subject: leave some breadcrumbs for finding renderered response attribute settings --- docs/api/request.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/api/request.rst') diff --git a/docs/api/request.rst b/docs/api/request.rst index 912634b62..d17441c0a 100644 --- a/docs/api/request.rst +++ b/docs/api/request.rst @@ -125,3 +125,12 @@ .. automethod:: static_url + .. attribute:: response_* + + You can set attributes on a :class:`pyramid.request.Request` which will + influence the behavor of *rendered* responses (views which use a + :term:`renderer` and which don't directly return a response). These + attributes begin with ``response_``, such as ``response_headerlist``. If + you need to influence response values from a view that uses a renderer + (such as the status code, a header, the content type, etc) see, + :ref:`response_request_attrs`. -- cgit v1.2.3