[Zope-Checkins] CVS: Zope/lib/python/Products/OFSP/help - OrderSupport.py:1.1.2.2

Yvo Schubbe y.2004_ at wcm-solutions.de
Fri Apr 9 08:24:08 EDT 2004


Update of /cvs-repository/Zope/lib/python/Products/OFSP/help
In directory cvs.zope.org:/tmp/cvs-serv22275/lib/python/Products/OFSP/help

Modified Files:
      Tag: Zope-2_7-branch
	OrderSupport.py 
Log Message:
- added optional 'subset_ids' argument to move methods


=== Zope/lib/python/Products/OFSP/help/OrderSupport.py 1.1.2.1 => 1.1.2.2 ===
--- Zope/lib/python/Products/OFSP/help/OrderSupport.py:1.1.2.1	Thu Dec 11 12:41:37 2003
+++ Zope/lib/python/Products/OFSP/help/OrderSupport.py	Fri Apr  9 08:24:07 2004
@@ -21,13 +21,17 @@
     is totally user-specific.
     """
 
-    def moveObjectsByDelta(ids, delta):
+    def moveObjectsByDelta(ids, delta, subset_ids=None):
         """ Move specified sub-objects by delta.
 
         If delta is higher than the possible maximum, objects will be moved to
         the bottom. If delta is lower than the possible minimum, objects will
         be moved to the top.
 
+        If subset_ids is not None, delta will be interpreted relative to the
+        subset specified by a sequence of ids. The position of objects that
+        are not part of this subset will not be changed.
+
         The order of the objects specified by ids will always be preserved. So
         if you don't want to change their original order, make sure the order
         of ids corresponds to their original order.
@@ -39,7 +43,7 @@
         Returns -- Number of moved sub-objects
         """
 
-    def moveObjectsUp(ids, delta=1):
+    def moveObjectsUp(ids, delta=1, subset_ids=None):
         """ Move specified sub-objects up by delta in container.
 
         If no delta is specified, delta is 1. See moveObjectsByDelta for more
@@ -50,7 +54,7 @@
         Returns -- Number of moved sub-objects
         """
 
-    def moveObjectsDown(ids, delta=1):
+    def moveObjectsDown(ids, delta=1, subset_ids=None):
         """ Move specified sub-objects down by delta in container.
 
         If no delta is specified, delta is 1. See moveObjectsByDelta for more
@@ -61,7 +65,7 @@
         Returns -- Number of moved sub-objects
         """
 
-    def moveObjectsToTop(ids):
+    def moveObjectsToTop(ids, subset_ids=None):
         """ Move specified sub-objects to top of container.
 
         See moveObjectsByDelta for more details.
@@ -71,7 +75,7 @@
         Returns -- Number of moved sub-objects
         """
 
-    def moveObjectsToBottom(ids):
+    def moveObjectsToBottom(ids, subset_ids=None):
         """ Move specified sub-objects to bottom of container.
 
         See moveObjectsByDelta for more details.




More information about the Zope-Checkins mailing list