From ca53b25e6c27a613440a433aded6bfbcd9df4098 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 25 Jul 2008 01:28:09 +0000 Subject: Temporarily hide step4, tweaks. --- docs/narr/models.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/narr') diff --git a/docs/narr/models.rst b/docs/narr/models.rst index 40d52ca99..045bcad52 100644 --- a/docs/narr/models.rst +++ b/docs/narr/models.rst @@ -60,7 +60,7 @@ Location-Aware Model Instances by via ``__getitem__``. If you choose not to manage the ``__name__`` and ``__parent__`` - attributes of your models "by hand", :mod:``repoze.bfg`` is willing + attributes of your models "by hand", :mod:`repoze.bfg`` is willing to help you do this. If your "root" node claims it implements the interface ``zope.location.interfaces.ILocation``, you don't need to manage these attributes by hand. During traversal, if the root node @@ -70,7 +70,6 @@ Location-Aware Model Instances If you choose to make use of the dynamic assignment of ``__parent__`` and ``__name__``, the root node must have a ``__parent__`` and a - ``__name__`` that are both None, and it must provide the + ``__name__`` that are both ``None``, and it must provide the ``ILocation`` interface. The easiest way to do this is to claim that - the class representing the root node - ``implements(ILocation)``. + the class representing the root node ``implements(ILocation)``. -- cgit v1.2.3