Commit ab0d4665 authored by Sebastien Robin's avatar Sebastien Robin

exclude in asDocumentationHelper some properties related to interface

definition. We will need specific helper for interfaces

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27779 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d1b5dd0
...@@ -3445,7 +3445,12 @@ class Base( CopyContainer, ...@@ -3445,7 +3445,12 @@ class Base( CopyContainer,
# dochelper.setSecurity() # (maybe) TODO: Add class instance security gthering. # dochelper.setSecurity() # (maybe) TODO: Add class instance security gthering.
# Class-level method & properties # Class-level method & properties
# We exclude some properites about interface definition because they
# need specific handling
excluded_property_set = set(['__provides__'])
for k, v in item_class.__dict__.items(): for k, v in item_class.__dict__.items():
if k in excluded_property_set:
continue
subdochelper = newTempDocumentationHelper(dochelper, k, subdochelper = newTempDocumentationHelper(dochelper, k,
title=k, description=inspect.getdoc(v), title=k, description=inspect.getdoc(v),
security=repr(getattr(documented_item, '%s__roles__' % (k,),None))) security=repr(getattr(documented_item, '%s__roles__' % (k,),None)))
......
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