add the title to --list output and use title rather than name in html output
This commit is contained in:
parent
4e1c8a0047
commit
5e0012f5aa
2 changed files with 4 additions and 3 deletions
|
@ -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>' % (
|
||||
|
|
|
@ -162,11 +162,12 @@ 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", \
|
||||
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", "?"),
|
||||
|
|
Loading…
Add table
Reference in a new issue