[Zope-Checkins] CVS: Zope/lib/python/OFS - OrderSupport.py:1.1.2.4
Yvo Schubbe
schubbe@web.de
Wed, 11 Jun 2003 15:28:34 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv6700/OFS
Modified Files:
Tag: yuppie-ordersupport-branch
OrderSupport.py
Log Message:
simplified ui
- 'Set View as Default' is more basic than 'Apply Current Sorting'
=== Zope/lib/python/OFS/OrderSupport.py 1.1.2.3 => 1.1.2.4 ===
--- Zope/lib/python/OFS/OrderSupport.py:1.1.2.3 Fri May 2 12:37:38 2003
+++ Zope/lib/python/OFS/OrderSupport.py Wed Jun 11 15:28:04 2003
@@ -118,18 +118,11 @@
manage_tabs_message=message)
security.declareProtected(manage_properties, 'manage_apply_sorting')
- def manage_apply_sorting(self, REQUEST, key, reverse):
- """ Order objects by sort_key, ascending or descending.
+ def manage_set_default_sorting(self, REQUEST, key, reverse):
+ """ Set default sorting key and direction.
"""
- message = ''
- if key != 'position':
- self.orderObjects(key, reverse)
- message += 'Ordered objects by %s (%s). ' % (key,
- reverse and 'descending' or 'ascending')
self.setDefaultSorting(key, reverse)
- message += 'Current sorting is now default.'
-
- return self.manage_main(self, REQUEST, manage_tabs_message=message)
+ return self.manage_main(self, REQUEST)
#