Commit 8e893a64 authored by Jérome Perrin's avatar Jérome Perrin

ui_test: fix pylint errors

parent fd8696d2
request = context.REQUEST
context.portal_workflow.doActionFor(context , workflow_action, comment='', **kw) context.portal_workflow.doActionFor(context , workflow_action, comment='', **kw)
message = 'direct workflow action done.' message = 'direct workflow action done.'
return context.Base_redirect('view', keep_items={'portal_status_message': message}) return context.Base_redirect('view', keep_items={'portal_status_message': message})
# this script has a parameter named `id`
# pylint: disable=redefined-builtin
"""Redirect to Foo_viewFormBox""" """Redirect to Foo_viewFormBox"""
msg = "%s %s %s %s" % (id, title, quantity, description) msg = "%s %s %s %s" % (id, title, quantity, description)
......
...@@ -8,4 +8,4 @@ kw = { ...@@ -8,4 +8,4 @@ kw = {
# 'selection_params': {}, # 'selection_params': {},
'temporary_selection': False, 'temporary_selection': False,
} }
return [ReportSection(**kw) for x in xrange(3)] return [ReportSection(**kw) for _ in xrange(3)]
...@@ -13,7 +13,7 @@ default_columns = '\n'.join(( 'id | ID' ...@@ -13,7 +13,7 @@ default_columns = '\n'.join(( 'id | ID'
, 'title | Title' , 'title | Title'
, 'quantity | Quantity' , 'quantity | Quantity'
)) ))
result = form.listbox.ListBox_setPropertyList( form.listbox.ListBox_setPropertyList(
field_title = 'Bars' field_title = 'Bars'
, field_columns = default_columns , field_columns = default_columns
, field_sort = 'id' , field_sort = 'id'
......
...@@ -8,7 +8,7 @@ for name in ('foo_module', 'bar_module', 'foo_bar_module'): ...@@ -8,7 +8,7 @@ for name in ('foo_module', 'bar_module', 'foo_bar_module'):
# Reset the foo module listbox # Reset the foo module listbox
form = context.FooModule_viewFooList form = context.FooModule_viewFooList
result = form.listbox.ListBox_setPropertyList() form.listbox.ListBox_setPropertyList()
#form.listbox.manage_edit(dict( #form.listbox.manage_edit(dict(
# lines = 3, all_columns = [], search_columns = [], sort_columns = [], # lines = 3, all_columns = [], search_columns = [], sort_columns = [],
...@@ -22,7 +22,7 @@ default_columns = '\n'.join(( 'id | ID' ...@@ -22,7 +22,7 @@ default_columns = '\n'.join(( 'id | ID'
, 'title | Title' , 'title | Title'
, 'quantity | Quantity' , 'quantity | Quantity'
)) ))
result = form.listbox.ListBox_setPropertyList( form.listbox.ListBox_setPropertyList(
field_title = 'Foo Lines' field_title = 'Foo Lines'
, field_columns = default_columns , field_columns = default_columns
, field_sort = 'id' , field_sort = 'id'
......
# this script has a parameter named `id`
# pylint: disable=redefined-builtin
"""Add or replace an action on a type informations from types tool. """Add or replace an action on a type informations from types tool.
""" """
assert context.meta_type in ('ERP5 Type Information', 'ERP5 Base Type'), context.meta_type assert context.meta_type in ('ERP5 Type Information', 'ERP5 Base Type'), context.meta_type
......
# this script has a parameter named `id`
# pylint: disable=redefined-builtin
"""Delete an action on a type informations from types tool. """Delete an action on a type informations from types tool.
""" """
assert context.meta_type in ('ERP5 Type Information', 'ERP5 Base Type'), context.meta_type assert context.meta_type in ('ERP5 Type Information', 'ERP5 Base Type'), context.meta_type
......
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