[Checkins] SVN: zope.location/trunk/ moved ISite and IPossibleSite to zope.component as they aren't about location, keep BBB imports

Thomas Lotze tl at gocept.com
Wed Nov 18 02:10:51 EST 2009


Log message for revision 105794:
  moved ISite and IPossibleSite to zope.component as they aren't about location, keep BBB imports

Changed:
  U   zope.location/trunk/CHANGES.txt
  U   zope.location/trunk/setup.py
  U   zope.location/trunk/src/zope/location/interfaces.py

-=-
Modified: zope.location/trunk/CHANGES.txt
===================================================================
--- zope.location/trunk/CHANGES.txt	2009-11-18 01:14:00 UTC (rev 105793)
+++ zope.location/trunk/CHANGES.txt	2009-11-18 07:10:50 UTC (rev 105794)
@@ -5,9 +5,9 @@
 3.7.1 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Moved the IPossibleSite and ISite interfaces to zope.component as they are
+  dealing with zope.component's concept of a site, but not with location.
 
-
 3.7.0 (2009-09-29)
 ------------------
 

Modified: zope.location/trunk/setup.py
===================================================================
--- zope.location/trunk/setup.py	2009-11-18 01:14:00 UTC (rev 105793)
+++ zope.location/trunk/setup.py	2009-11-18 07:10:50 UTC (rev 105794)
@@ -59,7 +59,7 @@
       install_requires=['setuptools',
                         'zope.interface',
                         'zope.schema>=3.5.1dev',
-                        'zope.component',
+                        'zope.component>=3.8.0',
                         'zope.proxy>3.3',
                         'zope.copy',
                         ],

Modified: zope.location/trunk/src/zope/location/interfaces.py
===================================================================
--- zope.location/trunk/src/zope/location/interfaces.py	2009-11-18 01:14:00 UTC (rev 105793)
+++ zope.location/trunk/src/zope/location/interfaces.py	2009-11-18 07:10:50 UTC (rev 105794)
@@ -20,7 +20,10 @@
 import zope.interface
 import zope.schema
 
+# BBB
+from zope.component.interfaces import IPossibleSite, ISite
 
+
 class ILocation(zope.interface.Interface):
     """Objects that can be located in a hierachy.
 
@@ -121,22 +124,3 @@
 
 class LocationError(KeyError, LookupError):
     """There is no object for a given location."""
-
-
-class IPossibleSite(zope.interface.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"""



More information about the checkins mailing list