Commit 19837e1d authored by Jérome Perrin's avatar Jérome Perrin

ERP5Form,Formulator: make widget a new style class

This makes consistent method resolution order with python3 and reveal a
problem that relation field widgets render_pdf was not the expected one
on python3, solve this by defining explicitly the method.
parent 871b1de4
...@@ -367,6 +367,8 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -367,6 +367,8 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
) )
return html_string return html_string
render_pdf = Widget.LinesTextAreaWidget.render_pdf
def render_autocomplete(self, field, key): def render_autocomplete(self, field, key):
""" """
Use jquery-ui autocompletion for all relation fields by default, requiring Use jquery-ui autocompletion for all relation fields by default, requiring
......
...@@ -86,7 +86,7 @@ def convertToString(value): ...@@ -86,7 +86,7 @@ def convertToString(value):
return str(value) return str(value)
return value return value
class Widget: class Widget(object):
"""A field widget that knows how to display itself as HTML. """A field widget that knows how to display itself as HTML.
""" """
......
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