diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-04-28 14:34:46 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-04-28 16:36:47 -0300 |
commit | 8d0fc00e8bbcb504373c3b29932bc6bdc2fb9fe3 (patch) | |
tree | b533bf6607e44ff61672c7298fc57462f204bc2c | |
parent | aaece960d3cf1c9d19dd84fe8171769517647724 (diff) |
Skip BaseWrapper class from class diagram generation.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | doc/inheritance_diagram.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/inheritance_diagram.py b/doc/inheritance_diagram.py index ae248edd8..0f9be0874 100644 --- a/doc/inheritance_diagram.py +++ b/doc/inheritance_diagram.py @@ -148,7 +148,7 @@ class InheritanceGraph(object): def recurse(cls): all_classes[cls] = None for c in cls.__bases__: - if c not in all_classes and c.__name__ != "instance": + if c not in all_classes and c.__name__ != "BaseWrapper": recurse(c) for cls in classes: @@ -246,7 +246,7 @@ class InheritanceGraph(object): # Write the edges for base in cls.__bases__: - if base.__name__ == "instance": + if base.__name__ == "BaseWrapper": continue if not self.show_builtins and base in __builtins__.values(): continue @@ -304,7 +304,7 @@ class InheritanceDiagram(Directive): node['graph'] = graph # Store the original content for use as a hash node['parts'] = self.options.get('parts', 0) - node['content'] = ' '.join(class_names) + node['content'] = ', '.join(class_names) return [node] @@ -332,7 +332,8 @@ def html_visit_inheritance_diagram(self, node): urls[child['reftitle']] = '#' + child.get('refid') dotcode = graph.generate_dot(name, parts, urls, env=self.builder.env) - render_dot_html(self, node, dotcode, [], 'inheritance', 'inheritance') + render_dot_html(self, node, dotcode, [], 'inheritance', 'inheritance', + alt='Inheritance diagram of ' + node['content']) raise nodes.SkipNode |