From 21707020158f1c161c402776148436ce82c7c5b6 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 29 Apr 2009 21:34:09 +0000 Subject: Drop the ILocation testing by default during traversal. --- docs/narr/models.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/narr/models.rst') diff --git a/docs/narr/models.rst b/docs/narr/models.rst index c07dfbe18..e9eddf39b 100644 --- a/docs/narr/models.rst +++ b/docs/narr/models.rst @@ -110,6 +110,19 @@ root node says it implements the ``ILocation`` :term:`interface`, will dynamically assign a ``__name__`` and a ``__parent__`` to it, recursively. +.. note:: + In order to use this feature, you must 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``:: + + + + If you choose to make use of the location-based dynamic assignment of ``__parent__`` and ``__name__``, the root node must have a ``__parent__`` that is ``None``, a ``__name__`` with any value, and it -- cgit v1.2.3