[Zope3-checkins] CVS: Zope3/src/zope/app/location - __init__.py:1.8
Jim Fulton
jim at zope.com
Tue Apr 27 06:53:47 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/location
In directory cvs.zope.org:/tmp/cvs-serv1711/src/zope/app/location
Modified Files:
__init__.py
Log Message:
Removed dependence on zapi, since this module is used by zapi.
Modules that implement zapi can't use zapi.
=== Zope3/src/zope/app/location/__init__.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/location/__init__.py:1.7 Mon Apr 5 15:44:07 2004
+++ Zope3/src/zope/app/location/__init__.py Tue Apr 27 06:53:46 2004
@@ -16,7 +16,6 @@
$Id$
"""
import zope.interface
-from zope.app import zapi
from zope.app.location.interfaces import ILocation
from zope.app.traversing.interfaces import IPhysicallyLocatable
from zope.app.traversing.interfaces import IContainmentRoot
@@ -26,6 +25,7 @@
from zope.proxy import ProxyBase, getProxiedObject
from zope.app.decorator import DecoratorSpecificationDescriptor
from zope.app.decorator import DecoratedSecurityCheckerDescriptor
+from zope.app.traversing import getParents
import cPickle
import tempfile
@@ -201,7 +201,7 @@
"""return the nearest site, see IPhysicallyLocatable"""
if ISite.providedBy(self.context):
return self.context
- for parent in zapi.getParents(self.context):
+ for parent in getParents(self.context):
if ISite.providedBy(parent):
return parent
return self.getRoot()
More information about the Zope3-Checkins
mailing list