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

fixup! listbox: sorting by CAST type (float)

parent 47c142b0
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
<list> <list>
<tuple> <tuple>
<string>Default</string> <string>Default</string>
<string>default</string> <string></string>
</tuple> </tuple>
<tuple> <tuple>
<string>Numerical</string> <string>Numerical</string>
......
...@@ -256,9 +256,6 @@ def getSearchDialog(self, REQUEST=None): ...@@ -256,9 +256,6 @@ def getSearchDialog(self, REQUEST=None):
column_list = ListBoxListRenderer( column_list = ListBoxListRenderer(
listbox.widget, listbox, request).getAllColumnList() listbox.widget, listbox, request).getAllColumnList()
search_list = ListBoxListRenderer(
listbox.widget, listbox, request).getSearchColumnIdSet()
added_column_set = set() added_column_set = set()
for column_id, column_title in column_list: for column_id, column_title in column_list:
......
...@@ -140,15 +140,15 @@ class TestSelectionTool(ERP5TypeTestCase): ...@@ -140,15 +140,15 @@ class TestSelectionTool(ERP5TypeTestCase):
def testSortOrder(self): def testSortOrder(self):
self.portal_selections.setSelectionSortOrder('test_selection', self.portal_selections.setSelectionSortOrder('test_selection',
[('title', 'ascending')]) [('title', 'ascending')])
self.assertEqual([('title', 'ascending')], self.assertSequenceEqual([('title', 'ascending')],
self.portal_selections.getSelectionSortOrder('test_selection')) self.portal_selections.getSelectionSortOrder('test_selection'))
self.portal_selections.setSelectionQuickSortOrder('test_selection', self.portal_selections.setSelectionQuickSortOrder('test_selection',
'title') 'title')
self.assertEqual([('title', 'descending')], self.assertSequenceEqual([('title', 'descending')],
self.portal_selections.getSelectionSortOrder('test_selection')) self.portal_selections.getSelectionSortOrder('test_selection'))
self.portal_selections.setSelectionQuickSortOrder('test_selection', self.portal_selections.setSelectionQuickSortOrder('test_selection',
'date') 'date')
self.assertEqual([('date', 'ascending')], self.assertSequenceEqual([('date', 'ascending')],
self.portal_selections.getSelectionSortOrder('test_selection')) self.portal_selections.getSelectionSortOrder('test_selection'))
def testColumns(self): 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