summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-04-30 01:44:43 +0000
committerChris McDonough <chrism@agendaless.com>2009-04-30 01:44:43 +0000
commit361e49d1bd5bb498710d70c1122ff6feef589f95 (patch)
treeb9f690c1f7b6dd2a04fd64dee74e363c7dade568
parent30d34eb2dbc73675cb299f0ed8c356d969e2dcc7 (diff)
downloadpyramid-361e49d1bd5bb498710d70c1122ff6feef589f95.tar.gz
pyramid-361e49d1bd5bb498710d70c1122ff6feef589f95.tar.bz2
pyramid-361e49d1bd5bb498710d70c1122ff6feef589f95.zip
Expand b/w compat.
-rw-r--r--CHANGES.txt24
1 files changed, 19 insertions, 5 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 2ba331fea..f345ed6a0 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,11 +4,25 @@ Next release
Backwards Incompatibilities
---------------------------
-- The traversal feature which wrapped non-ILocation subobjects in
- proxies has been disabled by default. In order to enable it, register
- the ``WrappingModelGraphTraverser`` as the traversal policy, rather
- than the standard ``ModelGraphTraverser``. E.g., your application
- will need to have the following in its ``configure.zcml``::
+- In all previous releases, to support "toy" applications, which use,
+ for instance, a dictionary as the root object as opposed to an
+ object that supplies the ILocation interface (a ``__parent__``
+ attribute and a ``__name__`` attribute), :mod:`repoze.bfg` provided
+ some "help" during traversal. This traversal feature wrapped
+ subobjects that did not implement ``ILocation`` in proxies which
+ automatically provided them with a ``__name__`` and ``__parent__``
+ attribute based on the name being traversed. This feature has now
+ been disabled in the default configuration for purposes of speed.
+ In order to satisfy the new default, your root object and all
+ published subobjects should supply a ``__parent__`` attribute (which
+ is a reference to its direct traversal parent) and a ``__name__``
+ attribute.
+
+ In order to re-enable the ILocation wrapper behavior for older
+ applications which cannot be changed, register the
+ ``WrappingModelGraphTraverser`` as the traversal policy, rather than
+ the standard ``ModelGraphTraverser``. E.g., your application will
+ need to have the following in its ``configure.zcml``::
<adapter
factory="repoze.bfg.traversal.WrappingModelGraphTraverser"