[Erp5-report] r30932 - /erp5/trunk/products/ERP5/Document/BPMBuilder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Nov 30 16:09:19 CET 2009


Author: aurel
Date: Mon Nov 30 16:09:16 2009
New Revision: 30932

URL: http://svn.erp5.org?rev=30932&view=rev
Log:
do not retrieve causality uid if it was already provided

Modified:
    erp5/trunk/products/ERP5/Document/BPMBuilder.py

Modified: erp5/trunk/products/ERP5/Document/BPMBuilder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BPMBuilder.py?rev=30932&r1=30931&r2=30932&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BPMBuilder.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BPMBuilder.py [utf8] Mon Nov 30 16:09:16 2009
@@ -99,10 +99,11 @@
     self.callBeforeBuildingScript()
     # Select movements
     if input_movement_list is None:
-      business_path_value_list = self.getRelatedBusinessPathValueList()
-      if len(business_path_value_list) > 0:
-        # use only Business Path related movements
-        select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list]
+      if not select_method_dict.has_key('causality_uid'):
+        business_path_value_list = self.getRelatedBusinessPathValueList()
+        if len(business_path_value_list) > 0:
+          # use only Business Path related movements
+          select_method_dict['causality_uid'] = [q.getUid() for q in business_path_value_list]
       # do search
       input_movement_value_list = self.searchMovementList(
         delivery_relative_url_list=existing_delivery_list,




More information about the Erp5-report mailing list