Commit 7b5f5ecb authored by Fabien Morin's avatar Fabien Morin

remove unused spaces

reviewed and approved by Romain

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31343 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 174287b1
...@@ -721,7 +721,7 @@ class ListBoxRenderer: ...@@ -721,7 +721,7 @@ class ListBoxRenderer:
search_criterion = REQUEST.get(listbox_searchable_column_id, \ search_criterion = REQUEST.get(listbox_searchable_column_id, \
selection_params.get(listbox_searchable_column_id, None)) selection_params.get(listbox_searchable_column_id, None))
if search_criterion not in (None, "",) and not isinstance(search_criterion, dict): if search_criterion not in (None, "",) and not isinstance(search_criterion, dict):
# search criterion is usually input by user by UI, ignore created automated # search criterion is usually input by user by UI, ignore created automated
# by listbox_xxx form fields selection parameters as they do not represent # by listbox_xxx form fields selection parameters as they do not represent
# user input but rather a developer formating definition in form # user input but rather a developer formating definition in form
return 0 return 0
...@@ -821,7 +821,7 @@ class ListBoxRenderer: ...@@ -821,7 +821,7 @@ class ListBoxRenderer:
return name or None return name or None
getRowCSSMethodName = lazyMethod(getRowCSSMethodName) getRowCSSMethodName = lazyMethod(getRowCSSMethodName)
def getSelectionName(self): def getSelectionName(self):
"""Return the selection name. """Return the selection name.
""" """
...@@ -884,7 +884,7 @@ class ListBoxRenderer: ...@@ -884,7 +884,7 @@ class ListBoxRenderer:
return url_columns or [] return url_columns or []
def getUntranslatableColumnList(self): def getUntranslatableColumnList(self):
"""Return the untranslatable columns. Make sure that it is an empty list, """Return the untranslatable columns. Make sure that it is an empty list,
when not defined. when not defined.
""" """
untranslatable_columns = self.field.get_value('untranslatable_columns') untranslatable_columns = self.field.get_value('untranslatable_columns')
...@@ -1157,7 +1157,7 @@ class ListBoxRenderer: ...@@ -1157,7 +1157,7 @@ class ListBoxRenderer:
editable_field_id = '%s_%s' % (self.getUnprefixedId(), alias) editable_field_id = '%s_%s' % (self.getUnprefixedId(), alias)
if form.has_field(editable_field_id, include_disabled=1): if form.has_field(editable_field_id, include_disabled=1):
return form.get_field(editable_field_id, include_disabled=1) return form.get_field(editable_field_id, include_disabled=1)
# if we are rendering a proxy field, also look for editable fields from the # if we are rendering a proxy field, also look for editable fields from the
# template field's form. # template field's form.
if self.field.has_value('form_id'): if self.field.has_value('form_id'):
...@@ -1237,7 +1237,7 @@ class ListBoxRenderer: ...@@ -1237,7 +1237,7 @@ class ListBoxRenderer:
return row_css_method return row_css_method
getRowCSSMethod = lazyMethod(getRowCSSMethod) getRowCSSMethod = lazyMethod(getRowCSSMethod)
def getDomainSelection(self): def getDomainSelection(self):
"""Return a DomainSelection object wrapped with the context. """Return a DomainSelection object wrapped with the context.
""" """
...@@ -1518,7 +1518,7 @@ class ListBoxRenderer: ...@@ -1518,7 +1518,7 @@ class ListBoxRenderer:
value_list.append((None, None, None)) value_list.append((None, None, None))
return value_list return value_list
def getStatValueList(self): def getStatValueList(self):
"""Return a list of values, where each value is a tuple consisting of an original value and a processed value. """Return a list of values, where each value is a tuple consisting of an original value and a processed value.
A processed value is always an unicode object, and it may differ from the original value, for instance, A processed value is always an unicode object, and it may differ from the original value, for instance,
...@@ -1966,7 +1966,7 @@ class ListBoxRendererLine: ...@@ -1966,7 +1966,7 @@ class ListBoxRendererLine:
self.domain_title = domain_title self.domain_title = domain_title
self.render_prefix = render_prefix self.render_prefix = render_prefix
self.row_css_class_name = row_css_class_name self.row_css_class_name = row_css_class_name
def getBrain(self): def getBrain(self):
"""Return the brain. This can be identical to a real object. """Return the brain. This can be identical to a real object.
""" """
...@@ -2040,7 +2040,7 @@ class ListBoxRendererLine: ...@@ -2040,7 +2040,7 @@ class ListBoxRendererLine:
"""Return the css class name of a row. """Return the css class name of a row.
""" """
return self.row_css_class_name return self.row_css_class_name
def getValueList(self): def getValueList(self):
"""Return the list of values corresponding to selected columns. """Return the list of values corresponding to selected columns.
...@@ -2133,7 +2133,7 @@ class ListBoxRendererLine: ...@@ -2133,7 +2133,7 @@ class ListBoxRendererLine:
property_id = sql[sql.rindex('.') + 1:] property_id = sql[sql.rindex('.') + 1:]
except ValueError: except ValueError:
property_id = sql property_id = sql
try: try:
original_value = obj.getProperty(property_id, _marker) original_value = obj.getProperty(property_id, _marker)
if original_value is _marker: if original_value is _marker:
...@@ -2803,7 +2803,7 @@ class ListBoxLine: ...@@ -2803,7 +2803,7 @@ class ListBoxLine:
self.column_dict = {} self.column_dict = {}
self.column_id_list = [] self.column_id_list = []
self.row_css_class_name = '' self.row_css_class_name = ''
security.declarePublic('__getitem__') security.declarePublic('__getitem__')
def __getitem__(self, column_id): def __getitem__(self, column_id):
return self.getColumnProperty(column_id) return self.getColumnProperty(column_id)
...@@ -3050,7 +3050,7 @@ class ListBoxLine: ...@@ -3050,7 +3050,7 @@ class ListBoxLine:
"""Return the CSS class name of a row """Return the CSS class name of a row
""" """
return self.row_css_class_name return self.row_css_class_name
InitializeClass(ListBoxLine) InitializeClass(ListBoxLine)
allow_class(ListBoxLine) allow_class(ListBoxLine)
......
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