[Erp5-dev] something wrong in ERP5Form/Selection.py?

Bartłomiej Górny bartek at erp5.pl
Thu Dec 21 13:31:02 CET 2006


Hello

I wonder if this part of ERP5Form/Selection.py is ok:

192        elif kw.has_key('sort_on'):
193          del kw.params['sort_on']

kw is a copy of params, and params is a dict, so if this line if reached it 
fails with an AttributeError.

The other problem is that if I use two listboxes that share the same 
selection, the sort_on parameter is lost when going from one listbox to 
another, while I would expect it to be persistent.

Bartek



More information about the Erp5-dev mailing list