Commit 2b3a4616 authored by Julien Muchembled's avatar Julien Muchembled

fixup! listbox: sorting by CAST type (float)

parent 47c142b0
......@@ -235,7 +235,7 @@
<list>
<tuple>
<string>Default</string>
<string>default</string>
<string></string>
</tuple>
<tuple>
<string>Numerical</string>
......
......@@ -256,9 +256,6 @@ def getSearchDialog(self, REQUEST=None):
column_list = ListBoxListRenderer(
listbox.widget, listbox, request).getAllColumnList()
search_list = ListBoxListRenderer(
listbox.widget, listbox, request).getSearchColumnIdSet()
added_column_set = set()
for column_id, column_title in column_list:
......
......@@ -140,15 +140,15 @@ class TestSelectionTool(ERP5TypeTestCase):
def testSortOrder(self):
self.portal_selections.setSelectionSortOrder('test_selection',
[('title', 'ascending')])
self.assertEqual([('title', 'ascending')],
self.assertSequenceEqual([('title', 'ascending')],
self.portal_selections.getSelectionSortOrder('test_selection'))
self.portal_selections.setSelectionQuickSortOrder('test_selection',
'title')
self.assertEqual([('title', 'descending')],
self.assertSequenceEqual([('title', 'descending')],
self.portal_selections.getSelectionSortOrder('test_selection'))
self.portal_selections.setSelectionQuickSortOrder('test_selection',
'date')
self.assertEqual([('date', 'ascending')],
self.assertSequenceEqual([('date', 'ascending')],
self.portal_selections.getSelectionSortOrder('test_selection'))
def testColumns(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment