diff --git a/product/ERP5Type/Tool/ClassTool.py b/product/ERP5Type/Tool/ClassTool.py index 20a953e46a52dd9ebd4c52931288e9100d2c7682..cfa4468147cb283085bf8facf2acae3608fb0ba4 100644 --- a/product/ERP5Type/Tool/ClassTool.py +++ b/product/ERP5Type/Tool/ClassTool.py @@ -78,6 +78,10 @@ from zLOG import LOG COPYRIGHT = "Copyright (c) 2002-%s Nexedi SA and Contributors. All Rights Reserved." % DateTime().year() LOCAL_DIRECTORY_LIST = ('Document', 'Extensions', 'Constraint', 'tests', 'PropertySheet') +ATTRIBUTE_INSPECTION_SKIP_LIST = ''' +__implemented__ +__provides__ +'''.strip().splitlines() class ClassToolMixIn: @@ -878,6 +882,9 @@ def initialize( context ): dochelper.setInheritanceList([type(x) for x in my_class.__bases__]) #dochelper.my_security = for k, v in my_class.__dict__.items(): + if k in ATTRIBUTE_INSPECTION_SKIP_LIST: + # skip attributes we don't know how to inspect + continue subdochelper = newTempDocumentationHelper(dochelper, k, title=k, description=inspect.getdoc(v), security=pformat(getattr(my_class,