Commit 662e1f86 authored by Nicolas Delaby's avatar Nicolas Delaby

Delete trailing spaces



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43613 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9ba6a1e
...@@ -59,20 +59,20 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -59,20 +59,20 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
- one search button which updates the field and sets a relation - one search button which updates the field and sets a relation
- creates object if not there - creates object if not there
""" """
local_property_names = ['update_method', 'jump_method', 'allow_jump', local_property_names = ['update_method', 'jump_method', 'allow_jump',
'base_category', 'portal_type', 'allow_creation', 'base_category', 'portal_type', 'allow_creation',
'container_getter_id', 'context_getter_id', 'container_getter_id', 'context_getter_id',
'catalog_index', 'catalog_index',
'relation_setter_id', 'relation_form_id', 'columns', 'relation_setter_id', 'relation_form_id', 'columns',
'sort', 'parameter_list','list_method', 'sort', 'parameter_list','list_method',
'first_item', 'items', 'proxy_listbox_ids', 'first_item', 'items', 'proxy_listbox_ids',
'size', 'extra_item', 'size', 'extra_item',
] ]
property_names = Widget.LinesTextAreaWidget.property_names + \ property_names = Widget.LinesTextAreaWidget.property_names + \
Widget.TextWidget.property_names + \ Widget.TextWidget.property_names + \
local_property_names local_property_names
# XXX Field to remove... # XXX Field to remove...
update_method = fields.StringField('update_method', update_method = fields.StringField('update_method',
title='Update Method', title='Update Method',
...@@ -251,13 +251,13 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -251,13 +251,13 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
need_validation = 1 need_validation = 1
# If we get a empty string, display nothing ! # If we get a empty string, display nothing !
if value != '': if value != '':
result_list.append((Widget.TextWidgetInstance, relation_field_id, result_list.append((Widget.TextWidgetInstance, relation_field_id,
relation_item_list, value, i)) relation_item_list, value, i))
if not need_validation: if not need_validation:
################################### ###################################
# Main field # Main field
################################### ###################################
result_list = [(Widget.LinesTextAreaWidgetInstance, None, [], result_list = [(Widget.LinesTextAreaWidgetInstance, None, [],
value_list, None)] value_list, None)]
return result_list return result_list
...@@ -308,7 +308,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -308,7 +308,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
#################################### ####################################
if (value == field.get_value('default')): if (value == field.get_value('default')):
# XXX Default rendering with value... # XXX Default rendering with value...
relation_html_string = self.render_relation_link(field, value, relation_html_string = self.render_relation_link(field, value,
REQUEST) REQUEST)
if relation_html_string != '': if relation_html_string != '':
html_string += '  %s' % relation_html_string html_string += '  %s' % relation_html_string
...@@ -393,8 +393,8 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget, ...@@ -393,8 +393,8 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
html_string += '<a href="%s/%s?field_id=%s&amp;form_id=%s%s">' \ html_string += '<a href="%s/%s?field_id=%s&amp;form_id=%s%s">' \
'<img src="%s/images/jump.png" alt="jump" />' \ '<img src="%s/images/jump.png" alt="jump" />' \
'</a>' % \ '</a>' % \
(here.absolute_url(), (here.absolute_url(),
field.get_value('jump_method'), field.get_value('jump_method'),
field.id, field.aq_parent.id, field.id, field.aq_parent.id,
selection_name_html, selection_name_html,
portal_url_string) portal_url_string)
...@@ -404,9 +404,9 @@ class MultiRelationEditor: ...@@ -404,9 +404,9 @@ class MultiRelationEditor:
""" """
A class holding all values required to update a relation A class holding all values required to update a relation
""" """
def __init__(self, field_id, base_category, def __init__(self, field_id, base_category,
portal_type_list, portal_type_list,
portal_type_item, key, relation_setter_id, portal_type_item, key, relation_setter_id,
relation_editor_list, relation_editor_list,
context_getter_id): context_getter_id):
self.field_id = field_id self.field_id = field_id
......
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