add the title to --list output and use title rather than name in html output

This commit is contained in:
Gunter Labes 2008-09-29 15:33:00 +00:00
parent 98a59c6240
commit c664c8d215
2 changed files with 4 additions and 3 deletions

View file

@ -145,10 +145,11 @@ if __name__ == "__main__":
campaign.debug(show_contents = True,
use_color = options.color)
else:
column_sizes = [5, 7, 8, 8, 10, 5, 10, 13]
columns = [["name", "author", "version", "uploads", "downloads", "size", "timestamp", "translatable"]]
column_sizes = [5, 10, 7, 8, 8, 10, 5, 10, 13]
columns = [["name", "title", "author", "version", "uploads", "downloads", "size", "timestamp", "translatable"]]
for campaign in campaigns.get_all("campaign"):
column = [campaign.get_text_val("name", "?"),
campaign.get_text_val("title", "?"),
campaign.get_text_val("author", "?"),
campaign.get_text_val("version", "?"),
campaign.get_text_val("uploads", "?"),

View file

@ -66,7 +66,7 @@ Select the add-on you want to install from the list and click "OK". The download
imgurl = "icons/" + os.path.basename(icon)
os.system("cp -u " + src + " " + path + "/icons")
name = v("name", "unknown").replace("_", " ")
name = v("title", "unknown")
w(('<td><img alt="%s" src="%s" width="72px" height="72px"/>'
) % (icon, imgurl))
w('<div class="desc"><b>%s</b><br/>%s</div></td>' % (