[Erp5-report] r43766 luke - /erp5/trunk/products/Vifib/Tool/SlapTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 25 16:17:58 CET 2011


Author: luke
Date: Fri Feb 25 16:17:58 2011
New Revision: 43766

URL: http://svn.erp5.org?rev=43766&view=rev
Log:
 - synchronise with correct handling of software type, use correctly
   source_reference
 - as Software Instance is asked directly, there is no reason to use
   title

Modified:
    erp5/trunk/products/Vifib/Tool/SlapTool.py

Modified: erp5/trunk/products/Vifib/Tool/SlapTool.py
URL: http://svn.erp5.org/erp5/trunk/products/Vifib/Tool/SlapTool.py?rev=43766&r1=43765&r2=43766&view=diff
==============================================================================
--- erp5/trunk/products/Vifib/Tool/SlapTool.py [utf8] (original)
+++ erp5/trunk/products/Vifib/Tool/SlapTool.py [utf8] Fri Feb 25 16:17:58 2011
@@ -584,9 +584,12 @@ class SlapTool(BaseTool):
     requested_software_instance = software_instance_document.portal_catalog.\
         getResultValue(
               portal_type="Software Instance",
-              source_reference=partition_reference,
-              title=software_type,
-              predecessor_related_uid=software_instance_document.getUid(),)
+              source_reference=software_type,
+              # predecessor_related_uid is inconsistent with
+              # SoftwareInstancae.requestSoftwareInstance but in this case it
+              # is assumed, that data are correct
+              predecessor_related_uid=software_instance_document.getUid(),
+        )
 
     if requested_software_instance is None:
       raise SoftwareInstanceNotReady



More information about the Erp5-report mailing list