Commit 04c76360 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revise arguments of overridden LinesTextAreaWidget.render_view().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5989ce8b
......@@ -1528,8 +1528,8 @@ def LinesTextAreaWidget_render(self, field, key, value, REQUEST):
LinesTextAreaWidget.render = LinesTextAreaWidget_render
original_LinesTextAreaWidget_render_view = LinesTextAreaWidget.render_view
def LinesTextAreaWidget_render_view(self, field, key, value, REQUEST):
def LinesTextAreaWidget_render_view(self, field, value):
if isinstance(value, (str, unicode)):
value = [value]
return original_LinesTextAreaWidget_render_view(self, field, key, value, REQUEST)
return original_LinesTextAreaWidget_render_view(self, field, value)
LinesTextAreaWidget.render_view = LinesTextAreaWidget_render_view
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