[Erp5-report] r40943 nicolas.dumazet - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 1 03:01:00 CET 2010


Author: nicolas.dumazet
Date: Wed Dec  1 03:00:59 2010
New Revision: 40943

URL: http://svn.erp5.org?rev=40943&view=rev
Log:
use self.getId() instead of ''

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=40943&r1=40942&r2=40943&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Wed Dec  1 03:00:59 2010
@@ -399,7 +399,7 @@ class ERP5TypeInformation(XMLObject,
       return ob
 
     def _getPropertyHolder(self):
-      ob = self.constructInstance(self, '', temp_object=1)
+      ob = self.constructTempInstance(self, self.getId())
       ob._aq_dynamic('id')
       return ob.aq_portal_type[ob._aq_key()]
 
@@ -476,7 +476,7 @@ class ERP5TypeInformation(XMLObject,
     def getInstancePropertyAndBaseCategoryList(self):
       """Return all the properties and base categories of the portal type. """
       # PropertHolder._properties doesn't contain 'content' properties.
-      ob = self.constructInstance(self, '', temp_object=1)
+      ob = self.constructTempInstance(self, self.getId())
       property_list = list(getattr(ob.__class__, '_properties', []))
       self.updatePropertySheetDefinitionDict({'_properties': property_list})
       for property_sheet in getClassPropertyList(ob.__class__):
@@ -502,7 +502,7 @@ class ERP5TypeInformation(XMLObject,
       """
       Returns the list of properties which are specific to the portal type.
       """
-      return self.constructInstance(self, '', temp_object=1).propertyMap()
+      return self.constructTempInstance(self, self.getId()).propertyMap()
 
     def _edit(self, *args, **kw):
       """



More information about the Erp5-report mailing list