[Epydoc-commits] SF.net SVN: epydoc: [1753] trunk/epydoc/src/epydoc/docwriter/dotgraph.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-02-23 16:37:16
|
Revision: 1753 http://epydoc.svn.sourceforge.net/epydoc/?rev=1753&view=rev Author: edloper Date: 2008-02-23 08:37:10 -0800 (Sat, 23 Feb 2008) Log Message: ----------- - Fixed bug where graphs in latex would mark nodes as undocumented Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/dotgraph.py Modified: trunk/epydoc/src/epydoc/docwriter/dotgraph.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2008-02-23 16:24:45 UTC (rev 1752) +++ trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2008-02-23 16:37:10 UTC (rev 1753) @@ -1139,8 +1139,10 @@ # Don't do the same class twice. if base in cls2node: continue # Make the node. - if linker.url_for(base) is None: typ = 'undocumented' - elif base in classes: typ = 'selected' + if base in classes: typ = 'selected' + elif (hasattr(linker, 'docindex') and + linker.docindex.find(identifier, self.container) is None): + typ = 'undocumented' else: typ = 'superclass' cls2node[base] = mknode(base, typ, linker, context, options) graph.nodes.append(cls2node[base]) @@ -1425,7 +1427,7 @@ if context is not None: label = label.contextualize(context.canonical_name) node = DotGraphNode(label) - specialize_valdoc_node(node, val_doc, context, linker.url_for(val_doc)) + specialize_valdoc_node(node, val_doc, context, linker) return node NOOP_URL = 'javascript:void(0);' @@ -1438,7 +1440,7 @@ PORT="body" HREF="%s" TOOLTIP="%s">%s</TD></TR> </TABLE>'''.strip() -def specialize_valdoc_node(node, val_doc, context, url): +def specialize_valdoc_node(node, val_doc, context, linker): """ Update the style attributes of `node` to reflext its type and context. @@ -1454,9 +1456,12 @@ # Set the URL. (Do this even if it points to the page we're # currently on; otherwise, the tooltip is ignored.) + url = linker.url_for(val_doc) node['href'] = url or NOOP_URL - - if url is None: + + if (url is None and + hasattr(linker, 'docindex') and + linker.docindex.find(identifier, self.container) is None): node['fillcolor'] = UNDOCUMENTED_BG node['style'] = 'filled' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |