From 77253c199c020547175622eb45de127b5a9d33a0 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 8 Mar 2006 18:04:24 +0000
Subject: [PATCH] Thanks to Brice Leroy, make ProxyField compatible with
 render_htmlgrid.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6048 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ProxyField.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/product/ERP5Form/ProxyField.py b/product/ERP5Form/ProxyField.py
index ae6ae2d0ba..1151670988 100755
--- a/product/ERP5Form/ProxyField.py
+++ b/product/ERP5Form/ProxyField.py
@@ -149,6 +149,18 @@ class ProxyField(ZMIField):
       proxy_field = None
     return proxy_field
 
+  def render_htmlgrid(self, value=None, REQUEST=None, key=None):
+    """
+    render_htmlgrid returns a list of tuple (title, html render)
+    We will use title generated by the widget.
+    """
+    result = ()
+    proxy_field = self.getTemplateField()
+    if proxy_field is not None :
+      result = proxy_field.render_htmlgrid(key=key, value=value,
+                                           REQUEST=REQUEST)
+    return result
+
   def updateContext(self, REQUEST):
     """
     Update the REQUEST
-- 
2.30.9