Chris McDonough
2012-09-16 ab84e1038b9004c978ea49829c2d1b7a2d48d3d4
explain
1 files modified
5 ■■■■■ changed files
docs/narr/subrequest.rst 5 ●●●●● patch | view | raw | blame | history
docs/narr/subrequest.rst
@@ -82,6 +82,11 @@
       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