Commit 071c11af authored by Sebastien Robin's avatar Sebastien Robin

added a sort field


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2389 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c78794a5
...@@ -54,7 +54,7 @@ class RelationStringFieldWidget(Widget.TextWidget, Widget.ListWidget): ...@@ -54,7 +54,7 @@ class RelationStringFieldWidget(Widget.TextWidget, Widget.ListWidget):
""" """
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', 'columns', 'default_module', 'relation_setter_id', 'columns','sort',
'first_item', 'items', 'size', 'extra_item'] 'first_item', 'items', 'size', 'extra_item']
update_method = fields.StringField('update_method', update_method = fields.StringField('update_method',
...@@ -122,6 +122,12 @@ class RelationStringFieldWidget(Widget.TextWidget, Widget.ListWidget): ...@@ -122,6 +122,12 @@ class RelationStringFieldWidget(Widget.TextWidget, Widget.ListWidget):
default=[], default=[],
required=0) required=0)
sort = fields.ListTextAreaField('sort',
title='Default Sort',
description=('The default sort keys and order'),
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