diff options
| author | Chris McDonough <chrism@plope.com> | 2012-09-16 03:31:40 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-09-16 03:31:40 -0400 |
| commit | fef69b67c5d07f7b7294fe9b52f70fb9de22d17f (patch) | |
| tree | 132fcb59f174f0cb45056fa36ea00426ac2224a0 /docs | |
| parent | ab84e1038b9004c978ea49829c2d1b7a2d48d3d4 (diff) | |
| download | pyramid-fef69b67c5d07f7b7294fe9b52f70fb9de22d17f.tar.gz pyramid-fef69b67c5d07f7b7294fe9b52f70fb9de22d17f.tar.bz2 pyramid-fef69b67c5d07f7b7294fe9b52f70fb9de22d17f.zip | |
explain
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/subrequest.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/narr/subrequest.rst b/docs/narr/subrequest.rst index 045cec279..8429fe7fe 100644 --- a/docs/narr/subrequest.rst +++ b/docs/narr/subrequest.rst @@ -92,7 +92,9 @@ callable indirectly is the main advantage to using :meth:`pyramid.request.Request.subrequest` instead of simply importing the view callable and executing it directly. Note that there's not much advantage to invoking a view using a subrequest if you *can* invoke a view -callable directly. It's much slower to use a subrequest. +callable directly. Subrequests are slower and are less convenient if you +actually do want just the literal information returned by a function that +happens to be a view callable. The :meth:`pyramid.request.Request.subrequest` API accepts two arguments: a positional argument ``request`` that must be provided, and and ``use_tweens`` |
