[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing - Traverser.py:1.1.2.4
Guido van Rossum
guido@python.org
Thu, 13 Dec 2001 13:08:21 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing
In directory cvs.zope.org:/tmp/cvs-serv12427/Zope/App/Traversing
Modified Files:
Tag: Zope-3x-branch
Traverser.py
Log Message:
Finish Feature -> Adapter conversion
=== Zope3/lib/python/Zope/App/Traversing/Traverser.py 1.1.2.3 => 1.1.2.4 ===
from Zope.ContextWrapper.IWrapper import IWrapper
from Zope.ContextWrapper import wrapper
-from Zope.ComponentArchitecture import getFeature
+from Zope.ComponentArchitecture import getAdapter
from Zope.Exceptions import NotFoundError, Unauthorized
from Zope.App.Security.SecurityManagement import getSecurityManager
@@ -88,7 +88,7 @@
if restricted: validate(None, curr)
continue
- traversable = getFeature(curr, ITraversable, None)
+ traversable = getAdapter(curr, ITraversable, None)
if traversable is None:
# Cannot be traversed, so we cannot find the next name
raise NotFoundError, name