[Erp5-report] r39670 jm - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 29 10:59:42 CEST 2010


Author: jm
Date: Fri Oct 29 10:59:41 2010
New Revision: 39670

URL: http://svn.erp5.org?rev=39670&view=rev
Log:
newTempXxx: remove probably useless call to _setObject on temporary container

This fixes TestERP5WebWithDms.test_07_TestDocumentViewBehaviour

Modified:
    erp5/trunk/products/ERP5Type/ERP5Type.py

Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=39670&r1=39669&r2=39670&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Fri Oct 29 10:59:41 2010
@@ -316,12 +316,7 @@ class ERP5TypeInformation(XMLObject,
       """
       All ERP5Type.Document.newTempXXXX are constructTempInstance methods
       """
-      # you should not pass temp_object to constructTempInstance
-      ob = self.constructInstance(container, id, temp_object=1, *args, **kw)
-      if container.isTempObject():
-        container._setObject(id, ob.aq_base)
-      return ob
-
+      return self.constructInstance(container, id, temp_object=1, *args, **kw)
 
     security.declarePublic('constructInstance')
     def constructInstance(self, container, id, created_by_builder=0,




More information about the Erp5-report mailing list