diff options
| author | Chris McDonough <chrism@plope.com> | 2012-09-16 03:30:28 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-09-16 03:30:28 -0400 |
| commit | ab84e1038b9004c978ea49829c2d1b7a2d48d3d4 (patch) | |
| tree | 354f779f42bb60b12208a9a5d2a4085b0c56562b /docs/narr | |
| parent | 3f3917f9c70ddc83263e440a8bc781bacb33bb6e (diff) | |
| download | pyramid-ab84e1038b9004c978ea49829c2d1b7a2d48d3d4.tar.gz pyramid-ab84e1038b9004c978ea49829c2d1b7a2d48d3d4.tar.bz2 pyramid-ab84e1038b9004c978ea49829c2d1b7a2d48d3d4.zip | |
explain
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/subrequest.rst | 5 |
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 |
