Commit 39d0eff7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

code cleanup.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15b5d1fd
...@@ -34,7 +34,6 @@ from Products.ERP5Type import Permissions, PropertySheet, interfaces ...@@ -34,7 +34,6 @@ from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5.Document.Predicate import Predicate from Products.ERP5.Document.Predicate import Predicate
from Acquisition import aq_base from Acquisition import aq_base
from zLOG import LOG, WARNING
class Rule(Predicate, XMLObject): class Rule(Predicate, XMLObject):
""" """
...@@ -317,14 +316,11 @@ class Rule(Predicate, XMLObject): ...@@ -317,14 +316,11 @@ class Rule(Predicate, XMLObject):
return [(input_movement, None) for input_movement in input_movement_list] return [(input_movement, None) for input_movement in input_movement_list]
input_movement_and_path_list = [] input_movement_and_path_list = []
business_path_list = []
for input_movement in input_movement_list: for input_movement in input_movement_list:
for business_path in business_process.getPathValueList( for business_path in business_process.getPathValueList(
trade_phase_list, trade_phase_list,
input_movement): input_movement):
input_movement_and_path_list.append((input_movement, business_path)) input_movement_and_path_list.append((input_movement, business_path))
business_path not in business_path_list and business_path_list \
.append(business_path)
return input_movement_and_path_list return input_movement_and_path_list
......
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