Chris McDonough
2011-07-22 aa2fe1b0a02ba4edde4d285ec0a5a6ec545b7fec
refs
author Chris McDonough <chrism@plope.com>
Friday, July 22, 2011 04:02 +0200
committer Chris McDonough <chrism@plope.com>
Friday, July 22, 2011 04:02 +0200
commitaa2fe1b0a02ba4edde4d285ec0a5a6ec545b7fec
tree 72511de87df7b6369a073434e1fe2c38c1624a13 tree | zip | gz
parent 73c0aee5571bbdd7273033eda3a798d5597a76af view | diff
- Added the ``pyramid.renderers.null_renderer`` object as an API.  The null
renderer is an object that can be used in advanced integration cases as
input to the view configuration ``renderer=`` argument. When the null
renderer is used as a view renderer argument, Pyramid avoids converting the
view callable result into a Response object. This is useful if you want to
reuse the view configuration and lookup machinery outside the context of
its use by the Pyramid router. This feature was added for consumption by
the ``pyramid_rpc`` package, which uses view configuration and lookup
outside the context of a router in exactly this way. ``pyramid_rpc`` has
been broken under 1.1 since 1.1b1; adding it allows us to make it work
again.
13 files modified
428 ■■■■ changed files
CHANGES.txt 15 ●●●●● diff | view | raw | blame | history
docs/api/renderers.rst 9 ●●●●● diff | view | raw | blame | history
pyramid/config.py 13 ●●●● diff | view | raw | blame | history
pyramid/interfaces.py 1 ●●●● diff | view | raw | blame | history
pyramid/renderers.py 19 ●●●●● diff | view | raw | blame | history
pyramid/tests/grokkedapp/__init__.py 34 ●●●●● diff | view | raw | blame | history
pyramid/tests/grokkedapp/another.py 24 ●●●●● diff | view | raw | blame | history
pyramid/tests/grokkedapp/pod/notinit.py 3 ●●●● diff | view | raw | blame | history
pyramid/tests/grokkedapp/subpackage/__init__.py 3 ●●●● diff | view | raw | blame | history
pyramid/tests/grokkedapp/subpackage/notinit.py 3 ●●●● diff | view | raw | blame | history
pyramid/tests/grokkedapp/subpackage/subsubpackage/__init__.py 3 ●●●● diff | view | raw | blame | history
pyramid/tests/test_config.py 268 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_renderers.py 33 ●●●●● diff | view | raw | blame | history