[Erp5-report] r39573 kazuhiko - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 27 18:34:02 CEST 2010


Author: kazuhiko
Date: Wed Oct 27 18:34:01 2010
New Revision: 39573

URL: http://svn.erp5.org?rev=39573&view=rev
Log:
revert r39561-r39562 for now.

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=39573&r1=39572&r2=39573&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Wed Oct 27 18:34:01 2010
@@ -317,13 +317,9 @@ class ERP5TypeInformation(XMLObject,
       All ERP5Type.Document.newTempXXXX are constructTempInstance methods
       """
       # you should not pass temp_object to constructTempInstance
-      original_container = container.getOriginalDocument()
-      if original_container is None:
-        ob = self.constructInstance(container, id, temp_object=1, *args, **kw)
+      ob = self.constructInstance(container, id, temp_object=1, *args, **kw)
+      if container.isTempObject():
         container._setObject(id, ob.aq_base)
-      else:
-        ob = self.constructInstance(original_container, id, temp_object=1,
-                                    *args, **kw)
       return ob
 
 




More information about the Erp5-report mailing list