Commit 97bf578a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

set the default value of default_sort_on to [] instead of None.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12977 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4712b38e
...@@ -97,7 +97,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -97,7 +97,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
method_path=None method_path=None
params={} params={}
sort_on=() sort_on=()
default_sort_on=None default_sort_on=()
uids=() uids=()
invert_mode=0 invert_mode=0
list_url='' list_url=''
...@@ -127,6 +127,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -127,6 +127,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
columns=None, checked_uids=None, name=None, index=None): columns=None, checked_uids=None, name=None, index=None):
if params is None: params = {} if params is None: params = {}
if sort_on is None: sort_on = [] if sort_on is None: sort_on = []
if default_sort_on is None: default_sort_on = []
if uids is None: uids = [] if uids is None: uids = []
if columns is None: columns = [] if columns is None: columns = []
if checked_uids is None: checked_uids = [] if checked_uids is None: checked_uids = []
......
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