Commit 57d9baf7 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

Change identifiant properties in order to avoid conflict with properties in proxy Field

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20381 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 279ee47d
...@@ -62,23 +62,23 @@ class OOoChartWidget(Widget.Widget): ...@@ -62,23 +62,23 @@ class OOoChartWidget(Widget.Widget):
default="", default="",
required=0) required=0)
form_id = fields.StringField( listbox_form_id = fields.StringField(
'form_id', 'listbox_form_id',
title='Form ID', title='ListBox Form ID',
description= \ description= \
"ID of the master form.", "ID of the master form.",
default="", default="",
required=0) required=0)
property_names.append('form_id') property_names.append('listbox_form_id')
field_id = fields.StringField( listbox_id = fields.StringField(
'field_id', 'listbox_id',
title='Field ID', title='ListBox ID',
description= \ description= \
"ID of the listbox in the master form.", "ID of the listbox in the master form.",
default="", default="",
required=0) required=0)
property_names.append('field_id') property_names.append('listbox_id')
image_display = fields.ListField('image_display', image_display = fields.ListField('image_display',
title='Image Display', title='Image Display',
...@@ -337,15 +337,15 @@ class OOoChartWidget(Widget.Widget): ...@@ -337,15 +337,15 @@ class OOoChartWidget(Widget.Widget):
def stringBoolean(value): def stringBoolean(value):
return str(bool(value)).lower() return str(bool(value)).lower()
form = field.aq_parent form = field.aq_parent
form_id = field.get_value('form_id') listbox_form_id = field.get_value('listbox_form_id')
if form_id in ('', None): if listbox_form_id in ('', None):
form_id = form.getId() listbox_form_id = form.getId()
field_id = field.get_value('field_id') listbox_id = field.get_value('listbox_id')
if field_id in ('', None): if listbox_id in ('', None):
field_id = 'listbox' listbox_id = 'listbox'
extra_argument_dict = dict( extra_argument_dict = dict(
chart_form_id = form_id, chart_form_id = listbox_form_id,
chart_field_id = field_id, chart_field_id = listbox_id,
chart_title = field.get_value('title'), chart_title = field.get_value('title'),
chart_type = field.get_value('chart_type'), chart_type = field.get_value('chart_type'),
colour_column_dict = dict(field.get_value('colour_column_list')), colour_column_dict = dict(field.get_value('colour_column_list')),
......
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