summaryrefslogtreecommitdiff
path: root/docs/narr/subrequest.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-09-16 03:30:28 -0400
committerChris McDonough <chrism@plope.com>2012-09-16 03:30:28 -0400
commitab84e1038b9004c978ea49829c2d1b7a2d48d3d4 (patch)
tree354f779f42bb60b12208a9a5d2a4085b0c56562b /docs/narr/subrequest.rst
parent3f3917f9c70ddc83263e440a8bc781bacb33bb6e (diff)
downloadpyramid-ab84e1038b9004c978ea49829c2d1b7a2d48d3d4.tar.gz
pyramid-ab84e1038b9004c978ea49829c2d1b7a2d48d3d4.tar.bz2
pyramid-ab84e1038b9004c978ea49829c2d1b7a2d48d3d4.zip
explain
Diffstat (limited to 'docs/narr/subrequest.rst')
-rw-r--r--docs/narr/subrequest.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/narr/subrequest.rst b/docs/narr/subrequest.rst
index 5067fa890..045cec279 100644
--- a/docs/narr/subrequest.rst
+++ b/docs/narr/subrequest.rst
@@ -82,6 +82,11 @@ adapter will work too:
server = make_server('0.0.0.0', 8080, app)
server.serve_forever()
+Even though the ``view_two`` view callable returned a string, it was invoked
+in such a way that the ``string`` renderer associated with the view
+registration that was found turned it into a "real" response object for
+consumption by ``view_one``.
+
Being able to unconditionally obtain a response object by invoking a view
callable indirectly is the main advantage to using
:meth:`pyramid.request.Request.subrequest` instead of simply importing the