Commit 7d780c2e authored by Jérome Perrin's avatar Jérome Perrin

ListBox: include listbox id in Sortable Columns warning

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