diff options
author | Grosskopf <gerrit@familiegrosskopf.de> | 2017-10-12 14:34:28 +0200 |
---|---|---|
committer | Grosskopf <gerrit@familiegrosskopf.de> | 2017-10-15 09:28:29 +0200 |
commit | b4b632a37ee992d2cb75e4f0748e4a3b2816eabf (patch) | |
tree | 2d45f3cf422eb07ea21517e2c7406b3c7a05c202 | |
parent | abe47eaa630d48be9e47e6c3cad6c44829bb2249 (diff) |
filtering getters&setters over strings works for AudioStreamPlayer*
-rw-r--r-- | doc/tools/doc_status.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/tools/doc_status.py b/doc/tools/doc_status.py index e89b49eb4d..170ded9f50 100644 --- a/doc/tools/doc_status.py +++ b/doc/tools/doc_status.py @@ -250,15 +250,16 @@ class ClassStatus: for tag in list(c): if tag.tag in ['methods']: for sub_tag in list(tag): - methods.append(sub_tag.find('name')) + methods.append(sub_tag.attrib['name']) if tag.tag in ['members']: for sub_tag in list(tag): try: - methods.remove(sub_tag.find('setter')) - methods.remove(sub_tag.find('getter')) + if(sub_tag.attrib['setter'].startswith('_') == False): + methods.remove(sub_tag.attrib['setter']) + if(sub_tag.attrib['getter'].startswith('_') == False): + methods.remove(sub_tag.attrib['getter']) except: pass - for tag in list(c): if tag.tag == 'brief_description': @@ -269,7 +270,7 @@ class ClassStatus: elif tag.tag in ['methods', 'signals']: for sub_tag in list(tag): - if sub_tag.find('name') in methods or tag.tag == 'signals': + if sub_tag.attrib['name'] in methods or tag.tag == 'signals': descr = sub_tag.find('description') status.progresses[tag.tag].increment(len(descr.text.strip()) > 0) elif tag.tag in ['constants', 'members']: |