summaryrefslogtreecommitdiff
path: root/docs/api/request.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-04-19 00:08:37 -0400
committerChris McDonough <chrism@plope.com>2011-04-19 00:08:37 -0400
commitb330c74e58c46d20f97b5340f1eadc1865cfebc4 (patch)
treeefd3ed8726b0b73bf346885b596177e7268adfc7 /docs/api/request.rst
parentbe603e3f95fc42385783aa4bbfff132e4ea062c0 (diff)
downloadpyramid-b330c74e58c46d20f97b5340f1eadc1865cfebc4.tar.gz
pyramid-b330c74e58c46d20f97b5340f1eadc1865cfebc4.tar.bz2
pyramid-b330c74e58c46d20f97b5340f1eadc1865cfebc4.zip
clarify
Diffstat (limited to 'docs/api/request.rst')
-rw-r--r--docs/api/request.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/api/request.rst b/docs/api/request.rst
index 80b41badb..38971295f 100644
--- a/docs/api/request.rst
+++ b/docs/api/request.rst
@@ -93,9 +93,9 @@
it is accessed, subsequent accesses to this request object will return
the same :class:`~pyramid.response.Response` object.
- The ``request.response`` API is used by renderers. A render obtains the
- response object it will return from a view that uses that renderer by
- accessing ``request.response``. Therefore, it's possible to use the
+ The ``request.response`` API can is used by renderers. A render obtains
+ the response object it will return from a view that uses that renderer
+ by accessing ``request.response``. Therefore, it's possible to use the
``request.response`` API to set up a response object with "the right"
attributes (e.g. by calling ``request.response.set_cookie(...)`` or
``request.response.content_type = 'text/plain'``, etc) within a view
@@ -117,6 +117,9 @@
response.content_type = 'text/plain'
return response
+ Note that the response in this circumstance is not "global"; it still
+ must be returned from the view code if a renderer is not used.
+
.. attribute:: session
If a :term:`session factory` has been configured, this attribute