Commit 79d2be5e authored by Alexandre Boeglin's avatar Alexandre Boeglin

Pass cell to REQUEST, so that every TALES expression of a widget can access...

Pass cell to REQUEST, so that every TALES expression of a widget can access the cell, and not only description.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b62e277
...@@ -242,6 +242,7 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -242,6 +242,7 @@ class MatrixBoxWidget(Widget.Widget):
#LOG("Cell",0,str(kw)) #LOG("Cell",0,str(kw))
attribute_value = my_field.get_value('default', cell = cell, attribute_value = my_field.get_value('default', cell = cell,
cell_index = kw, cell_position = (i,j, k)) cell_index = kw, cell_position = (i,j, k))
REQUEST['cell'] = cell
cell_body += str(my_field.render(value = attribute_value, REQUEST = REQUEST, key = key)) cell_body += str(my_field.render(value = attribute_value, REQUEST = REQUEST, key = key))
list_body = list_body + \ list_body = list_body + \
('<td class=\"%s\">%s</td>' % (td_css, cell_body)) ('<td class=\"%s\">%s</td>' % (td_css, cell_body))
......
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