[Epydoc-commits] SF.net SVN: epydoc: [1204] trunk/epydoc/src/epydoc/docwriter/dotgraph.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-09 21:17:50
|
Revision: 1204 Author: edloper Date: 2006-04-09 14:17:46 -0700 (Sun, 09 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1204&view=rev Log Message: ----------- - Fixed bug in trunation of attribute/operation lists for uml class node Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/dotgraph.py Modified: trunk/epydoc/src/epydoc/docwriter/dotgraph.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2006-04-09 21:17:16 UTC (rev 1203) +++ trunk/epydoc/src/epydoc/docwriter/dotgraph.py 2006-04-09 21:17:46 UTC (rev 1204) @@ -735,17 +735,19 @@ # Construct the attribute list. (If it's too long, truncate) attrib_cells = [self._attribute_cell(a) for a in self.attributes] + max_attributes = self.options.get('max_attributes', 15) if len(attrib_cells) == 0: attrib_cells = ['<TR><TD></TD></TR>'] - elif len(attrib_cells) > self.options.get('max_attributes', 15): + elif len(attrib_cells) > max_attributes: attrib_cells[max_attributes-2:-1] = ['<TR><TD>...</TD></TR>'] attributes = ''.join(attrib_cells) # Construct the operation list. (If it's too long, truncate) oper_cells = [self._operation_cell(a) for a in self.operations] + max_operations = self.options.get('max_operations', 15) if len(oper_cells) == 0: oper_cells = ['<TR><TD></TD></TR>'] - elif len(oper_cells) > self.options.get('max_operations', 15): + elif len(oper_cells) > max_operations: oper_cells[max_operations-2:-1] = ['<TR><TD>...</TD></TR>'] operations = ''.join(oper_cells) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |