def h_topdownloads_all_link(self, m):
     res = ["<ul>"]
     for i in Items.gettopitems(self.params["topitems"]):
         res.append(
             '<li><a href="http://'
             + self.params["name"]
             + "/"
             + strtopath(i["manufacturer"], i["category"])
             + "/"
             + getname(i["name"], self.params["ext"])
             + '">'
             + i["name"]
             + "</a></li>"
         )
     res.append("</ul>")
     return "\n".join(res)
 def h_recent_downloads(self, m):
     res = ["<ul>"]
     for i in Items.gettopitems(int(m[1])):
         res.append(
             '<li><a href="http://'
             + self.params["name"]
             + "/"
             + strtopath(i["manufacturer"], i["category"])
             + "/"
             + getname(i["name"], self.params["ext"])
             + '">'
             + i["name"]
             + "</a><br><span>"
             + str(i["uploader_notes"])
             + "</span></li>"
         )
     res.append("</ul>")
     return "\n".join(res)
 def h_best_downloads(self, m):
     return (
         "<ul>"
         + "\n".join(
             '<li><a href="http://'
             + self.params["name"]
             + "/"
             + self.params["category"]
             + "/"
             + getname(i["name"], self.params["ext"])
             + '">'
             + i["name"]
             + "</a><br><span>"
             + i["uploader_notes"]
             + "</span></li>"
             for i in Items.gettopitems(int(m[1]), "tmp/" + self.params["category"])
         )
         + "</ul>"
     )