[Erp5-report] r32078 leonardo - /erp5/trunk/products/ERP5Type/Tool/ClassTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jan 28 19:17:05 CET 2010
Author: leonardo
Date: Thu Jan 28 19:17:05 2010
New Revision: 32078
URL: http://svn.erp5.org?rev=32078&view=rev
Log:
skip attributes we don't know how to inspect
Modified:
erp5/trunk/products/ERP5Type/Tool/ClassTool.py
Modified: erp5/trunk/products/ERP5Type/Tool/ClassTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/ClassTool.py?rev=32078&r1=32077&r2=32078&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] Thu Jan 28 19:17:05 2010
@@ -78,6 +78,10 @@
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 @@
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,
More information about the Erp5-report
mailing list