From 980e0b8a7a1fc7ae8087dd8162edf099cffb2194 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Tue, 22 Aug 2006 14:34:24 +0000
Subject: [PATCH] Required to support different renderable types in editable
 fields. (ex. lists, tokens, etc.)

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

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index c8f5aea7de..95b239044a 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -50,6 +50,7 @@ from Products.PageTemplates.PageTemplateFile import PageTemplateFile
 
 import md5
 import cgi
+import types
 
 # For compatibility with Python 2.3.
 try:
@@ -1962,7 +1963,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
           # XXX (JPS) - render_view does not get REQUEST - this breaks so many possibilities
           REQUEST = get_request() # Dirtymax hack by JPS - render_view API update required
           REQUEST.cell = self.getObject()
-          cell_html = editable_field.render( value   = display_value
+          cell_html = editable_field.render( value   = original_value
                                            , REQUEST = brain
                                            , key     = key
                                            )
@@ -2905,6 +2906,9 @@ class ListBox(ZMIField):
   security.declareProtected('Access contents information', 'getListMethodName')
   def getListMethodName(self):
     """Return the name of the list method. If not defined, return None.
+
+       XXX - Is this method really necessary - I am not sure - JPS
+       Why not use Formulator API instead ?
     """
     list_method = self.get_value('list_method')
     try:
-- 
2.30.9