summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-09-20 22:13:11 +0000
committerChris McDonough <chrism@agendaless.com>2009-09-20 22:13:11 +0000
commite4610566d881f707c01d266a7e336084029c83e4 (patch)
tree0a2001361b14e5b0b7521164e67560e2763e4c3c /CHANGES.txt
parent160f01439dc3e0d865b2e77bb4a9a7c9e7a16c1a (diff)
downloadpyramid-e4610566d881f707c01d266a7e336084029c83e4.tar.gz
pyramid-e4610566d881f707c01d266a7e336084029c83e4.tar.bz2
pyramid-e4610566d881f707c01d266a7e336084029c83e4.zip
- 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.
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt32
1 files changed, 29 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 1de84f7d0..e6b44519c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -31,6 +31,28 @@ Features
``view_renderer`` parameters (bring up to speed with 1.1a3
features). These can also be spelled as ``attr`` and ``renderer``.
+Backwards Incompatibilities
+---------------------------
+
+- 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.
+
+Internal
+--------
+
+- The way ``bfg_view`` declarations are scanned for has been modified.
+ This should have no external effects.
+
- Speed: do not register an ITraverserFactory in configure.zcml;
instead rely on queryAdapter and a manual default to
ModelGraphTraverser.
@@ -41,6 +63,7 @@ Features
- General speed microimprovements for helloworld benchmark: replace
try/excepts with statements which use 'in' keyword.
+
1.1a3 (2009-09-16)
==================
@@ -115,12 +138,15 @@ Backwards Incompatibilities
- The ``ITemplateRenderer`` interface has been changed. Previously
its ``__call__`` method accepted ``**kw``. It now accepts a single
- positional parameter named ``kw``. This is mostly an internal
- change, but it was exposed in APIs in one place: if you've used the
+ positional parameter named ``kw`` (REVISED: it accepts two
+ positional parameters as of 1.1a4: ``value`` and ``system``). This
+ is mostly an internal change, but it was exposed in APIs in one
+ place: if you've used the
``repoze.bfg.testing.registerDummyRenderer`` API in your tests with
a custom "renderer" argument with your own renderer implementation,
you will need to change that renderer implementation to accept
- ``kw`` instead of ``**kw`` in its ``__call__`` method.
+ ``kw`` instead of ``**kw`` in its ``__call__`` method (REVISED: make
+ it accept ``value`` and ``system`` positional arguments as of 1.1a4).
- The ``ITemplateRendererFactory`` interface has been changed.
Previously its ``__call__`` method accepted an ``auto_reload``