Commit c98f84ce authored by Nicolas Delaby's avatar Nicolas Delaby

Typo

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24635 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91423515
...@@ -55,18 +55,16 @@ class OOoChartWidget(Widget.Widget): ...@@ -55,18 +55,16 @@ class OOoChartWidget(Widget.Widget):
property_names = list(Widget.Widget.property_names) property_names = list(Widget.Widget.property_names)
default = fields.StringField( default = fields.StringField(
'default', 'default',
title='Default', title='Default',
description=( description=("A default value (not used)."),
"A default value (not used)."), default="",
default="", required=0)
required=0)
listbox_form_id = fields.StringField( listbox_form_id = fields.StringField(
'listbox_form_id', 'listbox_form_id',
title='ListBox 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('listbox_form_id') property_names.append('listbox_form_id')
...@@ -74,54 +72,52 @@ class OOoChartWidget(Widget.Widget): ...@@ -74,54 +72,52 @@ class OOoChartWidget(Widget.Widget):
listbox_id = fields.StringField( listbox_id = fields.StringField(
'listbox_id', 'listbox_id',
title='ListBox 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('listbox_id') property_names.append('listbox_id')
image_display = fields.ListField('image_display', image_display = fields.ListField('image_display',
title='Image Display', title='Image Display',
description=( description=("Render size of this chart in HTML mode."),
"Render size of this chart in HTML mode."), default='medium',
default='medium', items=[('thumbnail','thumbnail'),
items=[('thumbnail','thumbnail'), ('xsmall', 'xsmall'),
('xsmall', 'xsmall'), ('small', 'small'),
('small', 'small'), ('medium', 'medium'),
('medium', 'medium'), ('large', 'large'),
('large', 'large'), ('xlarge', 'xlarge'),
('xlarge', 'xlarge'), ],
], size=1)
size=1)
property_names.append('image_display') property_names.append('image_display')
image_format = fields.StringField('image_format', image_format = fields.StringField('image_format',
title='Image Format', title='Image Format',
description=( description=(
"The format in which the chart should be converted to."), "The format in which the chart should be converted to."),
default='png', default='png',
required=0) required=0)
property_names.append('image_format') property_names.append('image_format')
ooo_template = fields.StringField('ooo_template', ooo_template = fields.StringField('ooo_template',
title='OOo Template', title='OOo Template',
description=('The ID of a OOo Page Template' description=('The ID of a OOo Page Template'
' to render the ListBox'), 'to render the ListBox'),
default='ERP5Site_viewChart', default='ERP5Site_viewChart',
required=0) required=0)
property_names.append('ooo_template') property_names.append('ooo_template')
chart_type = fields.ListField('chart_type', chart_type = fields.ListField('chart_type',
title='Chart Type', title='Chart Type',
description=('Type of the Chart'), description=('Type of the Chart'),
default='chart:bar', default='chart:bar',
items=[('bar', 'chart:bar'), items=[('bar', 'chart:bar'),
('circle', 'chart:circle'), ('circle', 'chart:circle'),
('line', 'chart:line'), ('line', 'chart:line'),
('scatter', 'chart:scatter'), ('scatter', 'chart:scatter'),
], ],
size=0) size=0)
property_names.append('chart_type') property_names.append('chart_type')
...@@ -135,76 +131,79 @@ class OOoChartWidget(Widget.Widget): ...@@ -135,76 +131,79 @@ class OOoChartWidget(Widget.Widget):
# vertical ="true" # vertical ="true"
chart_position = fields.ListField('chart_position', chart_position = fields.ListField('chart_position',
title='Bar Position', title='Bar Position',
description=('Render the bar in horizontal position or vertical position'), description=(
default='false', 'Render the bar in horizontal position or vertical position'),
items=[('horizontal', 'true'), default='false',
('vertical', 'false'), items=[('horizontal', 'true'),
], ('vertical', 'false'),
size=0) ],
size=0)
property_names.append('chart_position') property_names.append('chart_position')
#legend of the chart or not #legend of the chart or not
chart_legend = fields.CheckBoxField('chart_legend', chart_legend = fields.CheckBoxField('chart_legend',
title='Chart Legend', title='Chart Legend',
description=('Show Chart Legend or no'), description=('Show Chart Legend or no'),
default=1, default=1,
required=0) required=0)
property_names.append('chart_legend') property_names.append('chart_legend')
position_legend = fields.ListField('position_legend', position_legend = fields.ListField('position_legend',
title='Legend Position', title='Legend Position',
description=('Legend Position according to the graph'), description=(
default='end', 'Legend Position according to the graph'),
items=[('bottom', 'bottom'), default='end',
('end', 'end'), items=[('bottom', 'bottom'),
('start', 'start'), ('end', 'end'),
('top', 'top'), ('start', 'start'),
], ('top', 'top'),
size=1) ],
size=1)
property_names.append('position_legend') property_names.append('position_legend')
#legend of the chart or not #legend of the chart or not
chart_title_or_no = fields.CheckBoxField('chart_title_or_no', chart_title_or_no = fields.CheckBoxField('chart_title_or_no',
title='Chart Title ', title='Chart Title ',
description=('Show Title on Graph or no '), description=('Show Title on Graph or no '),
default=1, default=1,
required=0) required=0)
property_names.append('chart_title_or_no') property_names.append('chart_title_or_no')
#grid or not #grid or not
grid_graph = fields.CheckBoxField('grid_graph', grid_graph = fields.CheckBoxField('grid_graph',
title='Chart Grid ', title='Chart Grid ',
description=('Show Grid or no'), description=('Show Grid or no'),
default=1, default=1,
required=0) required=0)
property_names.append('grid_graph') property_names.append('grid_graph')
grid_size = fields.ListField('grid_size', grid_size = fields.ListField('grid_size',
title='Grid Size', title='Grid Size',
description=('Render a big grid size or a small grid size'), description=(
default='major', 'Render a big grid size or a small grid size'),
items=[('major', 'major'), default='major',
('minor', 'minor'), items=[('major', 'major'),
], ('minor', 'minor'),
size=0) ],
size=0)
property_names.append('grid_size') property_names.append('grid_size')
user_data_title = fields.StringField('user_data_title', user_data_title = fields.StringField('user_data_title',
title="Overide Labelled Column ID", title="Overide Labelled Column ID",
description=( description=(
"Column Id choose by user to define the label."), "Column Id choose by user to define the label."),
required=0) required=0)
property_names.append('user_data_title') property_names.append('user_data_title')
user_column_id_list = fields.ListTextAreaField('user_column_id_list', user_column_id_list = fields.ListTextAreaField('user_column_id_list',
title="Overide Column Ids", title="Overide Column Ids",
description=( description=(
"A list of column Ids choose by user to draw the graph."), "A list of column Ids choose by user to draw the graph."),
default=[], default=[],
required=0) required=0)
property_names.append('user_column_id_list') property_names.append('user_column_id_list')
...@@ -217,16 +216,17 @@ class OOoChartWidget(Widget.Widget): ...@@ -217,16 +216,17 @@ class OOoChartWidget(Widget.Widget):
#connect-bars="false" #connect-bars="false"
connect_bars = fields.CheckBoxField('connect_bars', connect_bars = fields.CheckBoxField('connect_bars',
title='Connect Bars', title='Connect Bars',
description=(''), description=(''),
default=0, default=0,
required=0) required=0)
property_names.append('connect_bars') property_names.append('connect_bars')
chart_three_dimensional = fields.CheckBoxField('chart_three_dimensional', chart_three_dimensional = fields.CheckBoxField('chart_three_dimensional',
title='3D', title='3D',
description=('Render the chart in three dimensions rather in flat mode'), description=(
'Render the chart in three dimensions rather in flat mode'),
default=0, default=0,
required=0) required=0)
property_names.append('chart_three_dimensional') property_names.append('chart_three_dimensional')
...@@ -241,94 +241,94 @@ class OOoChartWidget(Widget.Widget): ...@@ -241,94 +241,94 @@ class OOoChartWidget(Widget.Widget):
# sector_pie_offset Default:0 # sector_pie_offset Default:0
sector_pie_offset = fields.IntegerField('sector_pie_offset', sector_pie_offset = fields.IntegerField('sector_pie_offset',
title='Sector Pie Offset', title='Sector Pie Offset',
description=(''), description=(''),
default=0, default=0,
required=0) required=0)
property_names.append('sector_pie_offset') property_names.append('sector_pie_offset')
#interpolation="none", cubic-spline, b-spline #interpolation="none", cubic-spline, b-spline
interpolation = fields.ListField('interpolation', interpolation = fields.ListField('interpolation',
title='Interpolation', title='Interpolation',
description=(''), description=(''),
default='none', default='none',
items=[('none', 'none'), items=[('none', 'none'),
('cubic-spline', 'cubic-spline'), ('cubic-spline', 'cubic-spline'),
('b-spline', 'b-spline')], ('b-spline', 'b-spline')],
size=1) size=1)
property_names.append('interpolation') property_names.append('interpolation')
#symbol-type="none", automatic #symbol-type="none", automatic
symbol_type = fields.ListField('symbol_type', symbol_type = fields.ListField('symbol_type',
title='Symbol Type', title='Symbol Type',
description=(''), description=(''),
default='none', default='none',
items=[('none', 'none'), items=[('none', 'none'),
('automatic', 'automatic'),], ('automatic', 'automatic'),],
size=1) size=1)
property_names.append('symbol_type') property_names.append('symbol_type')
#lines-used="0" #lines-used="0"
lines_used = fields.ListField('lines_used', lines_used = fields.ListField('lines_used',
title='Lines Used', title='Lines Used',
description=(''), description=(''),
default='0', default='0',
items=[('0', '0'), items=[('0', '0'),
('1', '1')], ('1', '1')],
size=1) size=1)
property_names.append('lines_used') property_names.append('lines_used')
#series-source=columns or rows #series-source=columns or rows
series_source = fields.ListField('series_source', series_source = fields.ListField('series_source',
title='Series Source', title='Series Source',
description=(''), description=(''),
default='columns', default='columns',
items=[('columns', 'columns'), items=[('columns', 'columns'),
('rows', 'rows'),], ('rows', 'rows'),],
size=1) size=1)
property_names.append('series_source') property_names.append('series_source')
#regression-type="none" linear logarithmic exponential power #regression-type="none" linear logarithmic exponential power
regression_type = fields.ListField('regression_type', regression_type = fields.ListField('regression_type',
title='Regression Type', title='Regression Type',
description=(''), description=(''),
default='none', default='none',
items=[('none', 'none'), items=[('none', 'none'),
('linear', 'linear'), ('linear', 'linear'),
('logarithmic', 'logarithmic'), ('logarithmic', 'logarithmic'),
('exponential', 'exponential'), ('exponential', 'exponential'),
('power', 'power')], ('power', 'power')],
size=1) size=1)
property_names.append('regression_type') property_names.append('regression_type')
#data-label-number="none" value percentage #data-label-number="none" value percentage
data_label_number = fields.ListField('data_label_number', data_label_number = fields.ListField('data_label_number',
title='Data Label Number', title='Data Label Number',
description=(''), description=(''),
default='none', default='none',
items=[('none', 'none'), items=[('none', 'none'),
('value', 'value'), ('value', 'value'),
('percentage', 'percentage')], ('percentage', 'percentage')],
size=1) size=1)
property_names.append('data_label_number') property_names.append('data_label_number')
#data-label-text="false" #data-label-text="false"
data_label_text = fields.CheckBoxField('data_label_text', data_label_text = fields.CheckBoxField('data_label_text',
title='Data Label Text', title='Data Label Text',
description=(''), description=(''),
default=0, default=0,
required=0) required=0)
property_names.append('data_label_text') property_names.append('data_label_text')
#data-label-symbol="false" #data-label-symbol="false"
data_label_symbol = fields.CheckBoxField('data_label_symbol', data_label_symbol = fields.CheckBoxField('data_label_symbol',
title='Data Label Symbol', title='Data Label Symbol',
description=(''), description=(''),
default=0, default=0,
required=0) required=0)
property_names.append('data_label_symbol') property_names.append('data_label_symbol')
...@@ -475,7 +475,7 @@ class OOoChartWidget(Widget.Widget): ...@@ -475,7 +475,7 @@ class OOoChartWidget(Widget.Widget):
class OOoChartValidator(Validator.Validator): class OOoChartValidator(Validator.Validator):
""" """
""" """
property_names =Validator.Validator.property_names property_names = Validator.Validator.property_names
def validate(self, key,field, REQUEST): def validate(self, key,field, REQUEST):
......
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