Commit f5d6c5ff authored by Jérome Perrin's avatar Jérome Perrin

mrp: fix pylint messages and enable coding style test

parent 1101c73e
......@@ -5,12 +5,12 @@ if resource is not None:
omit_optional_variation=1)
for base_category in base_category_list:
if matrixbox == 1:
if matrixbox:
# XXX matrixbox is right_display (not as listfield) => invert display and value in item
cell_range.append( map(lambda x: (x[1],x[0]), context.getVariationCategoryItemList(base_category_list = (base_category,) ) ) )
cell_range.append([(x[1], x[0]) for x in context.getVariationCategoryItemList(base_category_list=(base_category,))])
else:
cell_range.append( context.getVariationCategoryList(base_category_list = (base_category,) ) )
cell_range = filter(lambda x: x != [], cell_range )
cell_range = [x for x in cell_range if x != []]
return cell_range
request = context.REQUEST
domain_list = []
supply_chain_module = context.getPortalObject().supply_chain_module
if depth == 0:
category_list = []
for q in context.ProductionOrderModule_getSelectionProductionOrderList():
......
# this API uses format=
# pylint: disable=redefined-builtin
if target_language:
container.REQUEST['AcceptLanguage'].set(target_language, 10)
......
# this API uses format=
# pylint: disable=redefined-builtin
if target_language:
container.REQUEST['AcceptLanguage'].set(target_language, 10)
......
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