[Epydoc-commits] SF.net SVN: epydoc: [1728] trunk/epydoc/src/epydoc/docwriter/dotgraph.py
Brought to you by:
edloper
|
From: <ed...@us...> - 2008-02-18 18:25:49
|
Revision: 1728
http://epydoc.svn.sourceforge.net/epydoc/?rev=1728&view=rev
Author: edloper
Date: 2008-02-18 10:25:40 -0800 (Mon, 18 Feb 2008)
Log Message:
-----------
- When constructing UML graph nodes, guard against the case where
class_doc.sorted_variables is UNKNOWN. This is known to happen
if the user defines a class that subclasses from an undocumented
class that itself has a nested class. E.g., Tkinter.Misc.getint.
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-16 04:50:59 UTC (rev 1727)
+++ trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2008-02-18 18:25:40 UTC (rev 1728)
@@ -491,16 +491,17 @@
show_private = options.get('show_private_vars', False)
show_magic = options.get('show_magic_vars', True)
show_inherited = options.get('show_inherited_vars', False)
- for var in class_doc.sorted_variables:
- name = var.canonical_name[-1]
- if ((not show_private and var.is_public == False) or
- (not show_magic and re.match('__\w+__$', name)) or
- (not show_inherited and var.container != class_doc)):
- pass
- elif isinstance(var.value, RoutineDoc):
- self.operations.append(var)
- else:
- self.attributes.append(var)
+ if class_doc.sorted_variables not in (None, UNKNOWN):
+ for var in class_doc.sorted_variables:
+ name = var.canonical_name[-1]
+ if ((not show_private and var.is_public == False) or
+ (not show_magic and re.match('__\w+__$', name)) or
+ (not show_inherited and var.container != class_doc)):
+ pass
+ elif isinstance(var.value, RoutineDoc):
+ self.operations.append(var)
+ else:
+ self.attributes.append(var)
# Initialize our dot node settings.
tooltip = self._summary(class_doc)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|