(self, data)
return '<a href="%s">%s</a>' % (url, text)
Make a link for a module or package to display in an index.
Make a link for a module or package to display in an index.
Make a link for a module or package to display in an index .
def modpkglink(self, data):
        """Make a link for a module or package to display in an index."""
        name, path, ispackage, shadowed = data
        if shadowed:
            return self.grey(name)
        if path:
            url = '%s.%s.html' % (path, name)
        else:
            url = '%s.html' % name
        if ispackage:
            text = '<strong>%s</strong>&nbsp;(package)' % name
        else:
            text = name
        return '<a href="%s">%s</a>' % (url, text)
def modpkglink ( self , data ) : name , path , ispackage , shadowed = data if shadowed : return self . grey ( name ) if path : url = '%s.%s.html' % ( path , name ) else : url = '%s.html' % name if ispackage : text = '<strong>%s</strong>&nbsp;(package)' % name else : text = name return '<a href="%s">%s</a>' % ( url , text )