[Checkins] SVN: zope.location/trunk/src/zope/location/traversing.py import ISite from zope.component now
Thomas Lotze
tl at gocept.com
Wed Nov 18 04:06:48 EST 2009
Log message for revision 105796:
import ISite from zope.component now
Changed:
U zope.location/trunk/src/zope/location/traversing.py
-=-
Modified: zope.location/trunk/src/zope/location/traversing.py
===================================================================
--- zope.location/trunk/src/zope/location/traversing.py 2009-11-18 07:32:38 UTC (rev 105795)
+++ zope.location/trunk/src/zope/location/traversing.py 2009-11-18 09:06:48 UTC (rev 105796)
@@ -18,9 +18,10 @@
__docformat__ = 'restructuredtext'
import zope.component
+import zope.component.interfaces
import zope.interface
from zope.location.interfaces import ILocationInfo
-from zope.location.interfaces import ILocation, IRoot, ISite
+from zope.location.interfaces import ILocation, IRoot
from zope.location.location import Location
@@ -262,7 +263,8 @@
>>> LocationPhysicallyLocatable(o1).getNearestSite() is root
True
- >>> zope.interface.directlyProvides(o1, ISite)
+ >>> zope.interface.directlyProvides(
+ ... o1, zope.component.interfaces.ISite)
>>> LocationPhysicallyLocatable(o1).getNearestSite() is o1
True
@@ -272,10 +274,10 @@
True
"""
- if ISite.providedBy(self.context):
+ if zope.component.interfaces.ISite.providedBy(self.context):
return self.context
for parent in self.getParents():
- if ISite.providedBy(parent):
+ if zope.component.interfaces.ISite.providedBy(parent):
return parent
return self.getRoot()
More information about the checkins
mailing list