[Checkins] SVN: zope.location/trunk/s - moved IPossibleSite and ISite from zope.app.component to zope.location

Thomas Lotze tl at gocept.com
Wed Aug 22 07:56:31 EDT 2007


Log message for revision 79117:
  - moved IPossibleSite and ISite from zope.app.component to zope.location
  - removed dependency of zope.location on zope.app.component
  - bumped versions
  

Changed:
  U   zope.location/trunk/setup.py
  U   zope.location/trunk/src/zope/location/DEPENDENCIES.cfg
  U   zope.location/trunk/src/zope/location/interfaces.py
  U   zope.location/trunk/src/zope/location/traversing.py

-=-
Modified: zope.location/trunk/setup.py
===================================================================
--- zope.location/trunk/setup.py	2007-08-22 11:25:13 UTC (rev 79116)
+++ zope.location/trunk/setup.py	2007-08-22 11:56:30 UTC (rev 79117)
@@ -21,7 +21,7 @@
 from setuptools import setup, find_packages
 
 setup(name='zope.location',
-      version = '3.4.0b1',
+      version = '3.4.0b2',
       url='http://pypi.python.org/pypi/zope.location/',
       license='ZPL 2.1',
       description='Zope Location',
@@ -40,7 +40,6 @@
                         'zope.proxy>3.3',
                         'zope.security',
                         'zope.traversing',
-                        'zope.app.component',
                         ],
       include_package_data = True,
 

Modified: zope.location/trunk/src/zope/location/DEPENDENCIES.cfg
===================================================================
--- zope.location/trunk/src/zope/location/DEPENDENCIES.cfg	2007-08-22 11:25:13 UTC (rev 79116)
+++ zope.location/trunk/src/zope/location/DEPENDENCIES.cfg	2007-08-22 11:56:30 UTC (rev 79117)
@@ -1,5 +1,3 @@
-# zope.app only for ISite
-zope.app
 zope.component
 zope.interface
 zope.proxy

Modified: zope.location/trunk/src/zope/location/interfaces.py
===================================================================
--- zope.location/trunk/src/zope/location/interfaces.py	2007-08-22 11:25:13 UTC (rev 79116)
+++ zope.location/trunk/src/zope/location/interfaces.py	2007-08-22 11:56:30 UTC (rev 79117)
@@ -42,3 +42,20 @@
         An iterable of objects whose __parent__ is the object
         providing the interface is returned.
         """
+
+class IPossibleSite(Interface):
+    """An object that could be a site
+    """
+
+    def setSiteManager(sitemanager):
+        """Sets the site manager for this object.
+        """
+
+    def getSiteManager():
+        """Returns the site manager contained in this object.
+
+        If there isn't a site manager, raise a component lookup.
+        """
+
+class ISite(IPossibleSite):
+    """Marker interface to indicate that we have a site"""

Modified: zope.location/trunk/src/zope/location/traversing.py
===================================================================
--- zope.location/trunk/src/zope/location/traversing.py	2007-08-22 11:25:13 UTC (rev 79116)
+++ zope.location/trunk/src/zope/location/traversing.py	2007-08-22 11:56:30 UTC (rev 79117)
@@ -22,9 +22,8 @@
 from zope.traversing.interfaces import IPhysicallyLocatable
 from zope.traversing.interfaces import IContainmentRoot, ITraverser
 from zope.traversing.api import getParents
-from zope.location.interfaces import ILocation
+from zope.location.interfaces import ILocation, ISite
 from zope.location.location import Location
-from zope.app.component.interfaces import ISite
 
 class LocationPhysicallyLocatable(object):
     """Provide location information for location objects



More information about the Checkins mailing list