Commit 980e0b8a authored by Jean-Paul Smets's avatar Jean-Paul Smets

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
parent fbbe6116
......@@ -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:
......
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