diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-08-04 17:03:17 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-08-04 17:03:17 +0000 |
| commit | d8799a65cac382ee92c1bf33c38105a47ce12aef (patch) | |
| tree | c21c333f670b999ed39c7a183651dbcc50d08d06 | |
| parent | 0f5d8befb0f7a77c3b1ac96e43f9924f512d7fb7 (diff) | |
| download | pyramid-d8799a65cac382ee92c1bf33c38105a47ce12aef.tar.gz pyramid-d8799a65cac382ee92c1bf33c38105a47ce12aef.tar.bz2 pyramid-d8799a65cac382ee92c1bf33c38105a47ce12aef.zip | |
Reverse.
| -rw-r--r-- | repoze/bfg/traversal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/traversal.py b/repoze/bfg/traversal.py index 7f6b87ea1..cbd3b2750 100644 --- a/repoze/bfg/traversal.py +++ b/repoze/bfg/traversal.py @@ -81,9 +81,9 @@ def find_model(model, path): def find_interface(model, class_or_interface): """ Return the first object found in the parent chain of ``model`` - which, a) if ``interface_or_class`` is a Python class object, is + which, a) if ``class_or_interface`` is a Python class object, is an instance of the class or any subclass of that class or b) if - ``interface_or_class`` is a Zope interface, provides the specified + ``class_or_interface`` is a Zope interface, provides the specified interface. Return ``None`` if no object providing ``interface_or_class`` can be found in the parent chain. The ``model`` passed in *must* be :term:`location`-aware. |
