Commit 528766b3 authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

ListBox: include listbox id in Sortable Columns warning

This makes it easier to find the problematic listbox and also report
once per listbox.
parent fa1e369e
......@@ -1044,9 +1044,12 @@ class ListBoxRenderer:
sort_dict[c] = ':' + cast
else:
if cast:
warn('Each line of the "Sortable Columns" field property must be'
' in the form "<column_id> | <cast_type>", where <cast_type>'
" is one of ('', 'float').", DeprecationWarning)
warn(
'{form}/{field}:'.format(
form=self.getForm().getId(), field=self.field.getId())
+ ' Each line of the "Sortable Columns" field property must be'
+ ' in the form "<column_id> | <cast_type>", where <cast_type>'
+ " is one of ('', 'float').", DeprecationWarning)
sort_dict[c] = ''
return sort_dict
......
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