[Erp5-report] r33896 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 19 07:32:17 CET 2010


Author: nicolas.dumazet
Date: Fri Mar 19 07:32:16 2010
New Revision: 33896

URL: http://svn.erp5.org?rev=33896&view=rev
Log:
revert r33486, as it was breaking testTransformation, and since Transformation
re-indexation is now singling out temporary objects.

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

Modified: erp5/trunk/products/ERP5/Document/TransformedResource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TransformedResource.py?rev=33896&r1=33895&r2=33896&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TransformedResource.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TransformedResource.py [utf8] Fri Mar 19 07:32:16 2010
@@ -137,8 +137,6 @@
       """
         Get all interesting amount value and return AggregatedAmountList
       """
-      from Products.ERP5Type.Document import newTempAmount
-
       # Create the result object
       aggregated_amount_list = AggregatedAmountList()
       test_result = self.test(context)
@@ -152,8 +150,8 @@
         # changing. Failure to do so exposes to possible erroneous cache hits
         # for physical path based caching.
         tmp_id = '_'.join((parent.getId(), self.getId(), context.getId()))
-        tmp_amount = newTempAmount(parent, tmp_id)
-
+        tmp_amount = parent.newContent(id=tmp_id,
+                        temp_object=1, portal_type=self.getPortalType())
         # Create error string
         error_string = ''
         # Add resource relation




More information about the Erp5-report mailing list