Commit 09d8b399 authored by Jérome Perrin's avatar Jérome Perrin

update some field descriptions and style changes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32322 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be206798
...@@ -40,10 +40,6 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -40,10 +40,6 @@ class MatrixBoxWidget(Widget.Widget):
""" """
An UI widget which displays a matrix An UI widget which displays a matrix
A MatrixBoxWidget should be called 'matrixbox', if you don't do so, then
you may have some errors,
or some strange problems, you have been Warned !!!!
Don't forget that you can use tales expressions for every field, so this Don't forget that you can use tales expressions for every field, so this
is really usefull if you want to use fonctions is really usefull if you want to use fonctions
instead of predefined variables. instead of predefined variables.
...@@ -71,42 +67,42 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -71,42 +67,42 @@ class MatrixBoxWidget(Widget.Widget):
required=0) required=0)
as_cell_range_script_id = fields.StringField('as_cell_range_script_id', as_cell_range_script_id = fields.StringField('as_cell_range_script_id',
title='"As cell range" script id', title='Cell range method',
description=(""" description=(
Id of a script returning columns, lines and tabs. The script is passed "Method returning columns, lines and tabs. The method is passed"
matrixbox=True as argument."""), " matrixbox=True, base_id=base_id as arguments."),
default='', default='',
required=0) required=0)
columns = fields.ListTextAreaField('columns', columns = fields.ListTextAreaField('columns',
title="Columns", title="Columns",
description=( description=(
"""This defines columnes of the matrixbox. "This defines columns of the matrixbox. "
This should be a list of couples, "This should be a list of couples, "
couple[0] is the variation, and couple[1] is the name displayed "couple[0] is the variation, and couple[1] is the name displayed "
to the user. "to the user.\n"
For example (('color/bleu','bleu'),('color/red','red')). "For example (('color/blue', 'Bleu'), ('color/red','Red')).\n"
Deprecated, use "As cell range" script id instead"""), " Deprecated, use cell range method instead"),
default=[], default=[],
required=0) required=0)
lines = fields.ListTextAreaField('lines', lines = fields.ListTextAreaField('lines',
title="Lines", title="Lines",
description=( description=(
"""This defines lines of the matrixbox. This should be a list of couples, "This defines lines of the matrixbox. This should be a list of couples, "
couple[0] is the variation, and couple[1] is the name displayed "couple[0] is the variation, and couple[1] is the name displayed "
to the user. "to the user.\n"
For example (('size/baby/02','baby/02'),('size/baby/03','baby/03')). "For example (('size/baby/02','baby/02'),('size/baby/03','baby/03')).\n"
Deprecated, use "As cell range" script id instead"""), "Deprecated, use cell range method instead"),
default=[], default=[],
required=0) required=0)
tabs = fields.ListTextAreaField('tabs', tabs = fields.ListTextAreaField('tabs',
title="Tabs", title="Tabs",
description=( description=(
"""This defines tabs. You can use it with the same way as Lines "This defines tabs. You can use it with the same way as Lines "
and Columns, "and Columns.\n"
This is used only if you have more than 2 kinds of variations. "This is used only if you have more than 2 kinds of variations.\n"
Deprecated, use "As cell range" script id instead"""), "Deprecated, use cell range method instead"),
default=[], default=[],
required=0) required=0)
...@@ -114,38 +110,34 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -114,38 +110,34 @@ class MatrixBoxWidget(Widget.Widget):
cell_range = fields.ListTextAreaField('cell_range', cell_range = fields.ListTextAreaField('cell_range',
title="Cell Range", title="Cell Range",
description=( description=(
""" "This defines the range of the matrix."),
This defines the range of the matrix.
"""),
default=[], default=[],
required=0) required=0)
getter_method = fields.StringField('getter_method', getter_method = fields.StringField('getter_method',
title='Getter method', title='Getter method',
description=(""" description=(
You can specify a specific method in order to retrieve the context. "You can specify a specific method in order to retrieve the context. "
This field can be empty, if so the MatrixBox will use the default "This field can be empty, if so the MatrixBox will use the default "
context."""), "context."),
default='', default='',
required=0) required=0)
cell_getter_method = fields.StringField('cell_getter_method', cell_getter_method = fields.StringField('cell_getter_method',
title='Cell Getter method', title='Cell Getter method',
description=(""" description=(
You can specify a method in order to retrieve cells. This field can "You can specify a method in order to retrieve cells. This field can "
be empty, if so the MatrixBox will use the default method : getCell. "be empty, if so the MatrixBox will use the default method : getCell."
"""), ),
default='', default='',
required=0) required=0)
new_cell_method = fields.MethodField('new_cell_method', new_cell_method = fields.MethodField('new_cell_method',
title='New Cell method', title='New Cell method',
description=(""" description=(
You can specify a specific method in order to create cells. "You can specify a specific method in order to create cells. "
This field can be empty, if so the MatrixBox will use the default "This field can be empty, if so the MatrixBox will use the default "
method : "method : newCell."),
newCell."""),
default='', default='',
required=0) required=0)
...@@ -153,35 +145,34 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -153,35 +145,34 @@ class MatrixBoxWidget(Widget.Widget):
editable_attributes = fields.ListTextAreaField('editable_attributes', editable_attributes = fields.ListTextAreaField('editable_attributes',
title="Editable Properties", title="Editable Properties",
description=( description=(
"""A list of attributes which are set by hidden fields called "A list of attributes which are set by hidden fields called "
matrixbox_attribute_name. This is used "matrixbox_attribute_name. This is used "
when we want to specify a value calculated for each cell"""), "when we want to specify a computed value for each cell"),
default=[], default=[],
required=0) required=0)
global_attributes = fields.ListTextAreaField('global_attributes', global_attributes = fields.ListTextAreaField('global_attributes',
title="Global Properties", title="Global Properties",
description=( description=(
"""An optional list of globals attributes which are set by hidden "An optional list of globals attributes which are set by hidden "
fields and which are applied to each cell. "fields and which are applied to each cell. "
This is used if we want to set the same value for every cell"""), "This is used if we want to set the same value for every cell"),
default=[], default=[],
required=0) required=0)
cell_base_id = fields.StringField('cell_base_id', cell_base_id = fields.StringField('cell_base_id',
title='Base id for cells', title='Base id for cells',
description=(""" description=(
The Base id for cells : this is the name used to store cells, "The Base id for cells : this is the name used to store cells, "
we usually, "we usually use names like : 'movement', 'path', ... "),
use names like : 'mouvement','path', ...."""),
default='cell', default='cell',
required=0) required=0)
cell_portal_type = fields.StringField('cell_portal_type', cell_portal_type = fields.StringField('cell_portal_type',
title='Portal Type for cells', title='Portal Type for cells',
description=(""" description=(
The Portal Type for cells : This is the portal type used to "The Portal Type for cells : This is the portal type used to "
construct a new cell."""), "create a new cell."),
default='Mapped Value', default='Mapped Value',
required=0) required=0)
......
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