Chris McDonough
2009-09-21 e4610566d881f707c01d266a7e336084029c83e4
refs
author Chris McDonough <chrism@agendaless.com>
Monday, September 21, 2009 00:13 +0200
committer Chris McDonough <chrism@agendaless.com>
Monday, September 21, 2009 00:13 +0200
commite4610566d881f707c01d266a7e336084029c83e4
tree 0a2001361b14e5b0b7521164e67560e2763e4c3c tree | zip | gz
parent 160f01439dc3e0d865b2e77bb4a9a7c9e7a16c1a view | diff
- The way ``bfg_view`` declarations are scanned for has been modified.
This should have no external effects.

- An object implementing the ``IRenderer`` interface (and
``ITemplateRenderer`, which is a subclass of ``IRenderer``) must now
accept an extra ``system`` argument in its ``__call__`` method
implementation. Values computed by the system (as opposed to by the
view) are passed by the system in the ``system`` parameter, which
will always be a dictionary. Keys in the dictionary include:
``view`` (the view object that returned the value),
``renderer_name`` (the template name or simple name of the
renderer), ``context`` (the context object passed to the view), and
``request`` (the request object passed to the view). Previously
only ITemplateRenderers received system arguments as elements inside
the main ``value`` dictionary.


1 files added
18 files modified
660 ■■■■■ changed files
CHANGES.txt 32 ●●●●● diff | view | raw | blame | history
repoze/bfg/chameleon_text.py 13 ●●●●● diff | view | raw | blame | history
repoze/bfg/chameleon_zpt.py 13 ●●●●● diff | view | raw | blame | history
repoze/bfg/interfaces.py 11 ●●●● diff | view | raw | blame | history
repoze/bfg/renderers.py 12 ●●●● diff | view | raw | blame | history
repoze/bfg/testing.py 2 ●●● diff | view | raw | blame | history
repoze/bfg/tests/grokkedapp/__init__.py 39 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/grokkedapp/another.py 39 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_chameleon_text.py 23 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_chameleon_zpt.py 19 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_integration.py 113 ●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_renderers.py 12 ●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_testing.py 2 ●●● diff | view | raw | blame | history
repoze/bfg/tests/test_traversal.py 5 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_view.py 152 ●●●●● diff | view | raw | blame | history
repoze/bfg/tests/test_zcml.py 19 ●●●● diff | view | raw | blame | history
repoze/bfg/traversal.py 5 ●●●● diff | view | raw | blame | history
repoze/bfg/view.py 70 ●●●●● diff | view | raw | blame | history
repoze/bfg/zcml.py 79 ●●●●● diff | view | raw | blame | history