[Epydoc-commits] SF.net SVN: epydoc: [1305] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-23 15:06:30
|
Revision: 1305 Author: edloper Date: 2006-08-23 08:06:25 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1305&view=rev Log Message: ----------- - Docstring fix for HTMLWriter - Check if pyval_repr is available, even if pyval is UNKNOWN. This is used if we're writing html for docs came from a pickle. 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-23 15:01:24 UTC (rev 1304) +++ trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-23 15:06:25 UTC (rev 1305) @@ -282,8 +282,8 @@ end of their group; if C{inheritance='included'}, then inherited objects are mixed in with non-inherited objects. The default is 'grouped'. - @type include_sourcecode: C{boolean} - @param include_sourcecode: If true, then generate colorized + @type include_source_code: C{boolean} + @param include_sourc_ecode: If true, then generate colorized source code files for each python module. """ self.docindex = docindex @@ -696,6 +696,8 @@ #//////////////////////////////////////////////////////////// def write_sourcecode(self, out, doc, name_to_docs): + t0 = time.time() + filename = doc.filename name = str(doc.canonical_name) @@ -715,6 +717,9 @@ # Footer self.write_navbar(out, doc) self.write_footer(out) + + #log.debug('[%6.2f sec] Wrote pysrc for %s' % + # (time.time()-t0, name)) #//////////////////////////////////////////////////////////// #{ 2.2. Class Pages @@ -2239,6 +2244,8 @@ if val_doc is UNKNOWN: return '' if val_doc.pyval is not UNKNOWN: return self.pprint_pyval(val_doc.pyval) + elif val_doc.pyval_repr() is not UNKNOWN: + s = plaintext_to_html(val_doc.pyval_repr()) elif val_doc.parse_repr is not UNKNOWN: s = plaintext_to_html(val_doc.parse_repr) else: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |