Commit 827365e8 authored by Yusuke Muraoka's avatar Yusuke Muraoka

ordering of string evaluation was wrong


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31099 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f22580b8
...@@ -262,7 +262,7 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -262,7 +262,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))
...@@ -369,9 +369,9 @@ class TradeModelLine(Predicate, XMLMatrix, Amount): ...@@ -369,9 +369,9 @@ class TradeModelLine(Predicate, XMLMatrix, Amount):
# the paysheet # the paysheet
cell = model.getCell(salary_range) cell = model.getCell(salary_range)
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.getRelativeUlr(), self.getRelativeUrl(),
salary_range)) salary_range))
model_slice_min = cell.getQuantityRangeMin() model_slice_min = cell.getQuantityRangeMin()
model_slice_max = cell.getQuantityRangeMax() model_slice_max = cell.getQuantityRangeMax()
......
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