[Checkins] SVN: zope.location/trunk/ - Add ``IContained`` interface to ``zope.location.interfaces`` module.

Chris McDonough chrism at plope.com
Sun May 17 13:34:41 EDT 2009


Log message for revision 100040:
  - Add ``IContained`` interface to ``zope.location.interfaces`` module.
    This interface was moved from ``zope.container`` (after
    ``zope.container`` 3.8.2); consumers of ``IContained`` may now
    depend on zope.location rather than zope.container to reduce
    dependency cycles.
  
  

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

-=-
Modified: zope.location/trunk/CHANGES.txt
===================================================================
--- zope.location/trunk/CHANGES.txt	2009-05-17 17:31:22 UTC (rev 100039)
+++ zope.location/trunk/CHANGES.txt	2009-05-17 17:34:40 UTC (rev 100040)
@@ -5,7 +5,11 @@
 3.5.4 (unreleased)
 ------------------
 
-- ...
+- Add ``IContained`` interface to ``zope.location.interfaces`` module.
+  This interface was moved from ``zope.container`` (after
+  ``zope.container`` 3.8.2); consumers of ``IContained`` may now
+  depend on zope.location rather than zope.container to reduce
+  dependency cycles.
 
 3.5.3 (2009-02-09)
 ------------------

Modified: zope.location/trunk/src/zope/location/interfaces.py
===================================================================
--- zope.location/trunk/src/zope/location/interfaces.py	2009-05-17 17:31:22 UTC (rev 100039)
+++ zope.location/trunk/src/zope/location/interfaces.py	2009-05-17 17:34:40 UTC (rev 100040)
@@ -50,7 +50,14 @@
         required=False,
         default=None)
 
+# The IContained interface was moved from zope.container to here in
+# zope.container 3.8.2 to break dependency cycles.  It is not actually
+# used within this package, but is depended upon by external
+# consumers.
 
+class IContained(ILocation):
+    """Objects contained in containers."""
+
 class ILocationInfo(zope.interface.Interface):
     """Provides supplemental information for located objects.
 



More information about the Checkins mailing list