Commit 47140f37 authored by Romain Courteaud's avatar Romain Courteaud

Add property columns.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2259 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed9a3523
...@@ -45,7 +45,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget): ...@@ -45,7 +45,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget):
""" """
property_names = Widget.LinesTextAreaWidget.property_names + \ property_names = Widget.LinesTextAreaWidget.property_names + \
['update_method', 'jump_method', 'base_category', 'portal_type', 'catalog_index', ['update_method', 'jump_method', 'base_category', 'portal_type', 'catalog_index',
'default_module', 'relation_setter_id'] 'default_module', 'relation_setter_id','columns']
update_method = fields.StringField('update_method', update_method = fields.StringField('update_method',
title='Update Method', title='Update Method',
...@@ -96,6 +96,13 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget): ...@@ -96,6 +96,13 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget):
default="", default="",
required=0) required=0)
columns = fields.ListTextAreaField('columns',
title="Columns",
description=(
"A list of attributes names to display."),
default=[],
required=0)
def render(self, field, key, value, REQUEST): def render(self, field, key, value, REQUEST):
"""Render text input field. """Render text input field.
""" """
......
...@@ -48,7 +48,7 @@ class RelationStringFieldWidget(Widget.TextWidget): ...@@ -48,7 +48,7 @@ class RelationStringFieldWidget(Widget.TextWidget):
""" """
property_names = Widget.TextWidget.property_names + \ property_names = Widget.TextWidget.property_names + \
['update_method', 'jump_method', 'base_category', 'portal_type', 'catalog_index', ['update_method', 'jump_method', 'base_category', 'portal_type', 'catalog_index',
'default_module', 'relation_setter_id'] 'default_module', 'relation_setter_id', 'columns']
update_method = fields.StringField('update_method', update_method = fields.StringField('update_method',
title='Update Method', title='Update Method',
...@@ -99,6 +99,13 @@ class RelationStringFieldWidget(Widget.TextWidget): ...@@ -99,6 +99,13 @@ class RelationStringFieldWidget(Widget.TextWidget):
default="", default="",
required=0) required=0)
columns = fields.ListTextAreaField('columns',
title="Columns",
description=(
"A list of attributes names to display."),
default=[],
required=0)
def render(self, field, key, value, REQUEST): def render(self, field, key, value, REQUEST):
"""Render text input field. """Render text input field.
""" """
......
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