Author r.liebscher
Recipients doko, r.liebscher, ron_adam
Date 2008-10-29.18:06:41
SpamBayes Score 2.55649e-06
Marked as misclassified No
Message-id <1225303602.73.0.762575780852.issue902061@psf.upfronthosting.co.za>
In-reply-to
Content
I would like to see this change introducing a method of class HTMLDoc.

It has already some such methods as:

    def namelink(self, name, *dicts):
    def classlink(self, object, modname):
    def modulelink(self, object):
    def modpkglink(self, data):

So it would be logically to make it a method 
 
    def filelink(self,url,path):
         """Make a link to source file."""
         return '<a href="file:%s">%s</a>' % (url, path)
 
and changing the creating of the filelink to
...
            filelink = self.filelink(url, path)
         except TypeError:
            filelink = '(built-in)'
...

This way one can easily subclass HTMLDoc for own purposes and define a
own filelink method.
History
Date User Action Args
2008-10-29 18:06:43r.liebschersetrecipients: + r.liebscher, doko, ron_adam
2008-10-29 18:06:42r.liebschersetmessageid: <1225303602.73.0.762575780852.issue902061@psf.upfronthosting.co.za>
2008-10-29 18:06:41r.liebscherlinkissue902061 messages
2008-10-29 18:06:41r.liebschercreate