Commit 1ee55dd8 authored by Nicolas Dumazet's avatar Nicolas Dumazet

use self.getId() instead of ''


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40943 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 573564ad
......@@ -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):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment