From 79d2be5e4efcc0670f8a02ef48716323dbc67926 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Tue, 9 Nov 2004 10:32:14 +0000
Subject: [PATCH] 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
---
 product/ERP5Form/MatrixBox.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5Form/MatrixBox.py b/product/ERP5Form/MatrixBox.py
index 62382703f7..d5e9a8ee3f 100755
--- a/product/ERP5Form/MatrixBox.py
+++ b/product/ERP5Form/MatrixBox.py
@@ -242,6 +242,7 @@ class MatrixBoxWidget(Widget.Widget):
                   #LOG("Cell",0,str(kw))
                   attribute_value = my_field.get_value('default', cell = cell,
                                     cell_index = kw, cell_position = (i,j, k))
+                  REQUEST['cell'] = cell
                   cell_body += str(my_field.render(value = attribute_value, REQUEST = REQUEST, key = key))
               list_body = list_body + \
                     ('<td class=\"%s\">%s</td>' % (td_css, cell_body))
-- 
2.30.9