Commit c5b0f461 authored by Nicolas Delaby's avatar Nicolas Delaby

* Let the field itself provide value to pass through renderer

* Unify renderer signatures
reviewed by Romain


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2821a6c
......@@ -281,19 +281,22 @@ class Field:
render_prefix)
security.declareProtected('View', 'render_odt')
def render_odt(self, value=None, as_string=True, ooo_builder=None,
def render_odt(self, key=None, value=None, as_string=True, ooo_builder=None,
REQUEST=None, render_prefix=None, attr_dict=None, local_name='p'):
return self.widget.render_odt(self, value, as_string=as_string,
ooo_builder=ooo_builder, REQUEST=REQUEST,
render_prefix=render_prefix, attr_dict=attr_dict,
local_name=local_name)
widget_key = self.generate_field_key(key=key)
value = self._get_default(widget_key, value, REQUEST)
return self.widget.render_odt(self, value, as_string, ooo_builder,
REQUEST, render_prefix, attr_dict,
local_name)
security.declareProtected('View', 'render_odg')
def render_odg(self, value=None, as_string=True, ooo_builder=None,
REQUEST=None, render_prefix=None, attr_dict=None):
return self.widget.render_odg(self, value, as_string=as_string,
ooo_builder=ooo_builder, REQUEST=REQUEST,
render_prefix=render_prefix, attr_dict=attr_dict)
def render_odg(self, key=None, value=None, as_string=True, ooo_builder=None,
REQUEST=None, render_prefix=None, attr_dict=None, local_name='p'):
widget_key = self.generate_field_key(key=key)
value = self._get_default(widget_key, value, REQUEST)
return self.widget.render_odg(self, value, as_string, ooo_builder,
REQUEST, render_prefix, attr_dict,
local_name)
security.declareProtected('View', 'render_css')
def render_css(self, REQUEST=None):
......
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