diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-01-11 14:47:50 +0100 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-01-11 15:03:01 +0100 |
commit | 9791f84ea41b5de5fa7fb651a3d284b6ebe67176 (patch) | |
tree | 2f787ddef77d52ebac22046e186b8503ea25b362 /tools/class2dot.py | |
parent | df6847b72e4ba18d34c9309847f1f8c061102dd0 (diff) | |
download | openlmi-providers-9791f84ea41b5de5fa7fb651a3d284b6ebe67176.tar.gz openlmi-providers-9791f84ea41b5de5fa7fb651a3d284b6ebe67176.tar.xz openlmi-providers-9791f84ea41b5de5fa7fb651a3d284b6ebe67176.zip |
Check 'Implemeted' qualifier and show all implemented properties/methods as local.
Diffstat (limited to 'tools/class2dot.py')
-rwxr-xr-x | tools/class2dot.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/class2dot.py b/tools/class2dot.py index 008111b..4e844f2 100755 --- a/tools/class2dot.py +++ b/tools/class2dot.py @@ -101,7 +101,9 @@ class DotExporter(object): def compare_properties(self, p1, p2): """ - Compare two properties. Only Name and Description are checked. + Compare two properties if they should printed in Inherited properties. + Only Name, Description and Implemented are checked. + Returns False, if the property should be printed in Local. """ if p1.name != p2.name: return False @@ -109,6 +111,10 @@ class DotExporter(object): d2 = p2.qualifiers.get("Description", None) if d1.value != d2.value: return False + i1 = p1.qualifiers.get("Implemented", None) + i2 = p2.qualifiers.get("Implemented", None) + if i1 and i1.value and not (i2 and i2.value): + return False return True def print_class(self, c, display_local = True, box_only = False): |