Commit 0a577b9e authored by Nicolas Dumazet's avatar Nicolas Dumazet

fix getPropertySheetList when some property sheets are defined as strings


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41687 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 44a92999
......@@ -179,9 +179,14 @@ class PortalTypeDocumentationHelper(DocumentationHelper):
Returns the list of property sheets for the documentation helper
"""
temp_object = self.getTempInstance(self.getId())
property_sheet = [obj.__name__ for obj in temp_object.property_sheets]
property_sheet += self.getDocumentedObject().property_sheet_list
return property_sheet
property_sheet_list = []
for obj in temp_object.property_sheets:
if isinstance(obj, basestring):
property_sheet_list.append(obj)
else:
property_sheet_list.append(obj.__name__)
property_sheet_list += self.getDocumentedObject().property_sheet_list
return property_sheet_list
security.declareProtected(Permissions.AccessContentsInformation, 'getPropertySheetUriList')
def getPropertySheetUriList(self):
......
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