From 1b4e9b5d5e6ee1199b998c49e322ca0c4e540ac6 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 23 Jan 2009 16:22:15 +0000 Subject: Path elements are always unicode during traversal now. --- docs/narr/models.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/narr/models.rst') diff --git a/docs/narr/models.rst b/docs/narr/models.rst index 74cb9d50a..c07dfbe18 100644 --- a/docs/narr/models.rst +++ b/docs/narr/models.rst @@ -77,11 +77,11 @@ instances. :mod:`repoze.bfg` imposes the following policy on model instance nodes in the graph: - Nodes which contain other nodes (aka "container" nodes) must supply - a ``__getitem__`` method which is willing to resolve a string or - unicode name to a subobject. If a subobject by that name does not - exist in the container, ``__getitem__`` must raise a ``KeyError``. - If a subobject by that name *does* exist, the container should - return the subobject (another model instance). + a ``__getitem__`` method which is willing to resolve a unicode name + to a subobject. If a subobject by that name does not exist in the + container, ``__getitem__`` must raise a ``KeyError``. If a + subobject by that name *does* exist, the container should return the + subobject (another model instance). - Nodes which do not contain other nodes (aka "leaf" nodes) must not implement a ``__getitem__``, or if they do, their ``__getitem__`` -- cgit v1.2.3