[Epydoc-commits] SF.net SVN: epydoc: [1185] trunk/epydoc/src/epydoc/docwriter/html_colorize.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-07 01:07:06
|
Revision: 1185 Author: edloper Date: 2006-04-06 18:06:52 -0700 (Thu, 06 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1185&view=rev Log Message: ----------- - Turned on tooltips for linked names Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html_colorize.py Modified: trunk/epydoc/src/epydoc/docwriter/html_colorize.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2006-04-07 01:06:01 UTC (rev 1184) +++ trunk/epydoc/src/epydoc/docwriter/html_colorize.py 2006-04-07 01:06:52 UTC (rev 1185) @@ -670,7 +670,9 @@ #: add line numbers. ADD_LINE_NUMBERS = True - ADD_TOOLTIPS = False + #: A configuration constant, used to determine whether or not to + #: add tooltips for linked names. + ADD_TOOLTIPS = True def __init__(self, module_filename, module_name, docindex=None, api_docs=None, url_func=None): @@ -978,12 +980,12 @@ if url is None: docs = sorted(self.name_to_docs.get(toktext, [])) if docs: + tooltip='\n'.join(['%s'%d.canonical_name + for d in docs]) if len(docs) == 1: url = self.url_func(docs[0]) - tooltip='%s' % docs[0].canonical_name else: uid, onclick = self.doclink(toktext, docs) - tooltip='*.%s' % toktext # For all other tokens, look up the CSS class to use # based on the token's type. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |