From 5b647c4ad32618a8b3d29f9270b06f1503001cd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 9 Dec 2020 05:52:51 +0100
Subject: [PATCH] CodingStyle: allow property sheets as prefix

The spec says "see _getTypeBaseMethod" and _getTypeBaseMethod walks the
portal type class mro, which contain property sheets.
---
 product/ERP5Type/CodingStyle.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/product/ERP5Type/CodingStyle.py b/product/ERP5Type/CodingStyle.py
index b91cadd081..f829ed4083 100644
--- a/product/ERP5Type/CodingStyle.py
+++ b/product/ERP5Type/CodingStyle.py
@@ -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',
-- 
2.30.9