[Epydoc-commits] SF.net SVN: epydoc: [1283] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-22 01:32:41
|
Revision: 1283 Author: edloper Date: 2006-08-21 18:32:36 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1283&view=rev Log Message: ----------- Fixed SF bug [ 1501877 ] No indication of decorators in default class view. (Added 'Static Method' or 'Class Method' label right under the function signature in the details section, and removed @staticmethod and @classmethod from the decorators list. Also, put a <code>@...</code> around each decorator in the decorator list. Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html.py Modified: trunk/epydoc/src/epydoc/docwriter/html.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-22 01:14:31 UTC (rev 1282) +++ trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-22 01:32:36 UTC (rev 1283) @@ -1997,6 +1997,12 @@ >>> if var_doc.name in self.SPECIAL_METHODS: <br /><em class="fname">($self.SPECIAL_METHODS[var_doc.name]$)</em> >>> #endif + >>> if isinstance(func_doc, ClassMethodDoc): + <br /><em class="fname">Class Method</em> + >>> #endif + >>> if isinstance(func_doc, StaticMethodDoc): + <br /><em class="fname">Static Method</em> + >>> #endif </h3> </td><td align="right" valign="top" >$self.pysrc_link(func_doc)$ </span @@ -2029,7 +2035,12 @@ <dl><dt>Decorators:</dt></dl> <ul class="nomargin"> >>> for deco in func_doc.decorators: - <li>$deco$</li> + >>> # (staticmethod & classmethod are already shown, above) + >>> if not ((deco=="staticmethod" and + >>> isinstance(func_doc, StaticMethodDoc)) or + >>> (deco=="classmethod" and + >>> isinstance(func_doc, ClassMethodDoc))): + <li><code>@$deco$</code></li> >>> #endfor </ul> >>> #endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |