Commit 37d4b049 authored by Yoshinori Okuji's avatar Yoshinori Okuji

request is in renderer not in self itself.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8207 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f9e3a9f
...@@ -1875,7 +1875,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -1875,7 +1875,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
if isinstance(error_text, str): if isinstance(error_text, str):
error_text = unicode(error_text, encoding) error_text = unicode(error_text, encoding)
error_message = u'<br />' + error_text error_message = u'<br />' + error_text
processed_value = self.request.get('field_%s' % key, processed_value) processed_value = self.renderer.request.get('field_%s' % key, processed_value)
else: else:
error_message = u'' error_message = u''
...@@ -1889,7 +1889,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -1889,7 +1889,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
if editable_field.meta_type in ('DateTimeField', 'ProxyField', ): if editable_field.meta_type in ('DateTimeField', 'ProxyField', ):
# XXX Some fields prefer None to ''. # XXX Some fields prefer None to ''.
cell_html = editable_field.render(value = original_value, cell_html = editable_field.render(value = original_value,
REQUEST = brain.asContext(REQUEST = self.request, form = self.request.form), REQUEST = brain.asContext(REQUEST = self.renderer.request, form = self.renderer.request.form),
key = key) key = key)
else: else:
# We use REQUEST which is not so good here. # We use REQUEST which is not so good here.
......
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