[Zope3-checkins] CVS: Zope3/src/zope/app/location - __init__.py:1.3
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:58 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/location
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/location
Modified Files:
__init__.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/location/__init__.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/location/__init__.py:1.2 Fri Mar 5 17:09:10 2004
+++ Zope3/src/zope/app/location/__init__.py Sat Mar 6 11:50:27 2004
@@ -445,7 +445,7 @@
if path[:1] != u'/':
raise ValueError("ZPersistent paths must be absolute", path)
root = LocationPhysicallyLocatable(self.location).getRoot()
- return zapi.getAdapter(root, ITraverser).traverse(path[1:])
+ return ITraverser(root).traverse(path[1:])
class LocationProxy(ProxyBase):
More information about the Zope3-Checkins
mailing list