Commit 48ab695f authored by Fabien Morin's avatar Fabien Morin

revert 27291 because it makes testBPM failing, and currently, I don't...

revert 27291 because it makes testBPM failing, and currently, I don't understand why sorting is needed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27324 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9f6dd00
...@@ -144,13 +144,11 @@ class TradeCondition(Path, Transformation): ...@@ -144,13 +144,11 @@ class TradeCondition(Path, Transformation):
Reference of Trade Model Line is used to hide other Trade Model Line Reference of Trade Model Line is used to hide other Trade Model Line
In chain first found Trade Model Line has precedence In chain first found Trade Model Line has precedence
Context's, if not None, Trade Model Lines have precedence Context's, if not None, Trade Model Lines have precedence
XXX - the sorting is missing
""" """
if portal_type_list is None: if portal_type_list is None:
portal_type_list = self.model_line_portal_type_list portal_type_list = self.model_line_portal_type_list
def sortByIntIndex(a, b):
return cmp(a.getIntIndex(), b.getIntIndex())
reference_list = [] reference_list = []
trade_model_line_composed_list = [] trade_model_line_composed_list = []
containting_object_list = [] containting_object_list = []
...@@ -171,7 +169,6 @@ class TradeCondition(Path, Transformation): ...@@ -171,7 +169,6 @@ class TradeCondition(Path, Transformation):
trade_model_line_composed_list.append(trade_model_line) trade_model_line_composed_list.append(trade_model_line)
reference_list.append(reference) reference_list.append(reference)
trade_model_line_composed_list.sort(sortByIntIndex)
return trade_model_line_composed_list return trade_model_line_composed_list
def getAggregatedAmountList(self, context, movement_list=None, **kw): def getAggregatedAmountList(self, context, movement_list=None, **kw):
......
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