From d8799a65cac382ee92c1bf33c38105a47ce12aef Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 4 Aug 2009 17:03:17 +0000 Subject: Reverse. --- repoze/bfg/traversal.py | 4 ++-- 1 file 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. -- cgit v1.2.3