Commit 9a354f0d authored by Fabien Morin's avatar Fabien Morin

update method call because of the parameter changes (to be consistent with

other render_* methods)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31498 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ae3ebbe5
...@@ -9,6 +9,7 @@ from Shared.DC.Scripts.Bindings import Bindings ...@@ -9,6 +9,7 @@ from Shared.DC.Scripts.Bindings import Bindings
from Errors import ValidationError from Errors import ValidationError
from Products.Formulator.Widget import MultiItemsWidget from Products.Formulator.Widget import MultiItemsWidget
from zLOG import LOG from zLOG import LOG
from lxml import etree
class Field: class Field:
...@@ -280,14 +281,19 @@ class Field: ...@@ -280,14 +281,19 @@ class Field:
render_prefix) render_prefix)
security.declareProtected('View', 'render_odt') security.declareProtected('View', 'render_odt')
def render_odt(self, as_string=False, local_name='p', attr_dict=None): def render_odt(self, value=None, as_string=True, ooo_builder=None,
return self.widget.render_odt(self, as_string, local_name, attr_dict=attr_dict) 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)
security.declareProtected('View', 'render_odg') security.declareProtected('View', 'render_odg')
def render_odg(self, as_string=False, local_name='p', target_node=None, def render_odg(self, value=None, as_string=True, ooo_builder=None,
printout=None, REQUEST=None, ooo_builder=None, attr_dict=None): REQUEST=None, render_prefix=None, attr_dict=None):
return self.widget.render_odg(self, as_string, local_name, target_node, return self.widget.render_odg(self, value, as_string=as_string,
printout, REQUEST, ooo_builder, attr_dict) ooo_builder=ooo_builder, REQUEST=REQUEST,
render_prefix=render_prefix, attr_dict=attr_dict)
security.declareProtected('View', 'render_css') security.declareProtected('View', 'render_css')
def render_css(self, REQUEST=None): 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