Commit baf08e55 authored by Jérome Perrin's avatar Jérome Perrin

CodingStyle: allow property sheets as prefix

The spec says "see _getTypeBaseMethod" and _getTypeBaseMethod walks the
portal type class mro, which contain property sheets.
parent b298d07c
......@@ -60,6 +60,11 @@ def getSkinPrefixList(self):
# Add interfaces prefix, without the I prefix
skin_prefix_list.extend([x[1:] for x in portal_types.getInterfaceTypeList()])
# Add property sheets
skin_prefix_list.extend([
x.getId().replace(' ', '')
for x in portal.portal_property_sheets.contentValues()])
# Add other prefix
skin_prefix_list.extend((
'ERP5Type',
......
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