[Zope-Checkins] CVS: Zope/lib/python/OFS - OrderSupport.py:1.1.2.3

Yvo Schubbe schubbe@web.de
Fri, 2 May 2003 12:37:39 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv12525

Modified Files:
      Tag: yuppie-ordersupport-branch
	OrderSupport.py 
Log Message:
cleanup


=== Zope/lib/python/OFS/OrderSupport.py 1.1.2.2 => 1.1.2.3 ===
--- Zope/lib/python/OFS/OrderSupport.py:1.1.2.2	Wed Apr 30 08:31:27 2003
+++ Zope/lib/python/OFS/OrderSupport.py	Fri May  2 12:37:38 2003
@@ -28,18 +28,20 @@
 
 
 class OrderSupport:
-    """ Ordered container mixin class - This is an extension to the regular
-    ObjectManager. It saves the objects in order and lets you change the order
-    of the contained objects. This is particular helpful, if the order does
-    not depend on object attributes, but is totally user-specific.
+    """ Ordered container mixin class.
+    
+    This is an extension to the regular ObjectManager. It saves the objects in
+    order and lets you change the order of the contained objects. This is
+    particular helpful, if the order does not depend on object attributes, but
+    is totally user-specific.
     """
 
     __implements__ = IOrderedContainer
     security = ClassSecurityInfo()
 
     has_order_support = 1
-    _key = 'position'
-    _reverse = 0
+    _default_sort_key = 'position'
+    _default_sort_reverse = 0
 
     manage_options = ( { 'label':'Contents',
                          'action':'manage_main',
@@ -229,14 +231,14 @@
     def getDefaultSorting(self):
         """ Get default sorting key and direction.
         """
-        return self._key, self._reverse
+        return self._default_sort_key, self._default_sort_reverse
 
     security.declareProtected(manage_properties, 'setDefaultSorting')
     def setDefaultSorting(self, key, reverse):
         """ Set default sorting key and direction.
         """
-        self._key = key
-        self._reverse = reverse and 1 or 0
+        self._default_sort_key = key
+        self._default_sort_reverse = reverse and 1 or 0
 
 
     #