Commit 99c03c51 authored by Łukasz Nowak's avatar Łukasz Nowak

- remove not needed \


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 893b931f
...@@ -150,7 +150,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -150,7 +150,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# if parent don't have findSpecialiseValueList, this mean it's on the # if parent don't have findSpecialiseValueList, this mean it's on the
# specialise_value # specialise_value
document = self.getParentValue().getSpecialiseValue() document = self.getParentValue().getSpecialiseValue()
business_process_list = document.findSpecialiseValueList(\ business_process_list = document.findSpecialiseValueList(
context=context, portal_type_list=['Business Process']) context=context, portal_type_list=['Business Process'])
business_process = None business_process = None
property_dict = {} property_dict = {}
...@@ -159,7 +159,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -159,7 +159,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# one Business Process, so the first (which is the nearest from the # one Business Process, so the first (which is the nearest from the
# delivery) is took # delivery) is took
business_process = business_process_list[0] business_process = business_process_list[0]
business_path_list = business_process.getPathValueList(trade_phase=\ business_path_list = business_process.getPathValueList(trade_phase=
self.getTradePhase()) self.getTradePhase())
if len(business_path_list) > 1: if len(business_path_list) > 1:
raise NotImplementedError, 'For now, it can not support more '\ raise NotImplementedError, 'For now, it can not support more '\
...@@ -213,7 +213,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -213,7 +213,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
for cell_coordinates in cell_key_list: for cell_coordinates in cell_key_list:
cell = self.getCell(base_id=base_id, *cell_coordinates) cell = self.getCell(base_id=base_id, *cell_coordinates)
if cell is None: if cell is None:
raise ValueError("Line '%s' (%s) can't find the cell corresponding"+\ raise ValueError("Line '%s' (%s) can't find the cell corresponding"+
" to those cells coordinates : %s" % (self.getTitle(), " to those cells coordinates : %s" % (self.getTitle(),
self.getRelativeUrl(), self.getRelativeUrl(),
cell_coordinates)) cell_coordinates))
...@@ -269,12 +269,12 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -269,12 +269,12 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# if a calculation script is defined, use it # if a calculation script is defined, use it
calculation_script = self.getCalculationScript(context) calculation_script = self.getCalculationScript(context)
if calculation_script is not None: if calculation_script is not None:
tmp_movement = calculation_script(\ tmp_movement = calculation_script(
current_aggregated_amount_list=movement_list, current_aggregated_amount_list=movement_list,
current_movement=tmp_movement) current_movement=tmp_movement)
# check if slices are used # check if slices are used
salary_range_list = tmp_movement.getVariationCategoryList(\ salary_range_list = tmp_movement.getVariationCategoryList(
base_category_list='salary_range') #XXX hardcoded values base_category_list='salary_range') #XXX hardcoded values
salary_range = len(salary_range_list) and salary_range_list[0] or None salary_range = len(salary_range_list) and salary_range_list[0] or None
if salary_range is not None and calculation_script is None: if salary_range is not None and calculation_script is None:
......
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