[Checkins] SVN: zope.container/trunk/ - Moved the declaration of ``IOrderedContainer.updateOrder`` to a new, basic

Christian Zagrodnick cz at gocept.com
Tue Mar 24 11:32:58 EDT 2009


Log message for revision 98335:
  - Moved the declaration of ``IOrderedContainer.updateOrder``  to a new, basic
    ``IOrdered`` interface and let ``IOrderedContainer`` inherit it. This allows
    easier reuse of the declaration.
  
  
  

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

-=-
Modified: zope.container/trunk/CHANGES.txt
===================================================================
--- zope.container/trunk/CHANGES.txt	2009-03-24 14:58:56 UTC (rev 98334)
+++ zope.container/trunk/CHANGES.txt	2009-03-24 15:32:57 UTC (rev 98335)
@@ -5,7 +5,9 @@
 3.7.3 (unreleased)
 ------------------
 
-- ...
+- Moved the declaration of ``IOrderedContainer.updateOrder``  to a new, basic
+  ``IOrdered`` interface and let ``IOrderedContainer`` inherit it. This allows
+  easier reuse of the declaration.
 
 3.7.2 (2009-03-12)
 ------------------

Modified: zope.container/trunk/src/zope/container/interfaces.py
===================================================================
--- zope.container/trunk/src/zope/container/interfaces.py	2009-03-24 14:58:56 UTC (rev 98334)
+++ zope.container/trunk/src/zope/container/interfaces.py	2009-03-24 15:32:57 UTC (rev 98335)
@@ -177,9 +177,10 @@
         """
 
 
-class IOrderedContainer(IContainer):
-    """Containers whose contents are maintained in order."""
+class IOrdered(Interface):
+    """Objects whose contents are maintained in order."""
 
+
     def updateOrder(order):
         """Revise the order of keys, replacing the current ordering.
 
@@ -193,6 +194,11 @@
         """
 
 
+class IOrderedContainer(IOrdered, IContainer):
+    """Containers whose contents are maintained in order."""
+
+
+
 class IContainerNamesContainer(IContainer):
     """Containers that always choose names for their items."""
 



More information about the Checkins mailing list