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

ListBox: pass field being rendered to row_css_class script

parent 9c4d11dc
...@@ -2058,11 +2058,12 @@ class ListBoxRenderer: ...@@ -2058,11 +2058,12 @@ class ListBoxRenderer:
else: else:
index = i index = i
#LOG('ListBox', 0, 'current_section.__dict__ = %r' % (current_section.__dict__,)) #LOG('ListBox', 0, 'current_section.__dict__ = %r' % (current_section.__dict__,))
new_param_dict = param_dict.copy() row_css_class_name = self.getRowCSSClassName(
new_param_dict['brain'] = current_section.object_list[offset] brain=current_section.object_list[offset],
new_param_dict['list_index'] = index field=self.field,
new_param_dict['total_size'] = self.total_size list_index=index,
row_css_class_name = self.getRowCSSClassName(**new_param_dict) total_size=self.total_size,
**param_dict)
line = line_class(renderer = self, line = line_class(renderer = self,
obj = current_section.object_list[offset], obj = current_section.object_list[offset],
index = index, index = index,
......
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