diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-24 01:26:37 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-24 01:26:37 +0000 |
| commit | c6895b23b63365a983cf564fc67446913ef2bebd (patch) | |
| tree | 1b679908dcf9a360f3250603eb8fedd23f46a144 /repoze/bfg/location.py | |
| parent | 18e5d6c8fe922bf23ccbd481d60de294d7671103 (diff) | |
| download | pyramid-c6895b23b63365a983cf564fc67446913ef2bebd.tar.gz pyramid-c6895b23b63365a983cf564fc67446913ef2bebd.tar.bz2 pyramid-c6895b23b63365a983cf564fc67446913ef2bebd.zip | |
Roles.
Diffstat (limited to 'repoze/bfg/location.py')
| -rw-r--r-- | repoze/bfg/location.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/repoze/bfg/location.py b/repoze/bfg/location.py index fd3bd3792..7472129d2 100644 --- a/repoze/bfg/location.py +++ b/repoze/bfg/location.py @@ -31,11 +31,12 @@ def inside(model1, model2): def lineage(model): """ Return a generator representing the :term:`lineage` of the - ``model``. The generator first returns ``model`` unconditionally. - Then, if ``model`` supplies a ``__parent__`` attribute, return the - object represented by ``model.__parent__``. If *that* object has - a ``__parent__`` attribute, return that object's parent, and so - on, until the object being inspected either has no ``__parent__`` + :term:`model` object implied by the ``model`` argument. The + generator first returns ``model`` unconditionally. Then, if + ``model`` supplies a ``__parent__`` attribute, return the object + represented by ``model.__parent__``. If *that* object has a + ``__parent__`` attribute, return that object's parent, and so on, + until the object being inspected either has no ``__parent__`` attribute or which has a ``__parent__`` attribute of ``None``. For example, if the object tree is:: |
