svn: r13804
This commit is contained in:
Gerald Britton 2009-12-14 18:32:46 +00:00
parent 35a29e9ef5
commit 04a15c8647

View File

@ -3280,7 +3280,7 @@ class MediaListPage(BasePage):
] ]
trow.extend( trow.extend(
Html("th", label, class_ = "Column" + colclass, inline = True) Html("th", label, class_ = "Column" + colclass, inline = True)
for (label, colclass) in media_header_row for (label, colclass) in media_header_row
) )
# begin table body # begin table body
@ -3293,9 +3293,7 @@ class MediaListPage(BasePage):
for handle in mlist: for handle in mlist:
media = db.get_object_from_handle(handle) media = db.get_object_from_handle(handle)
title = media.get_description() title = media.get_description() or "[untitled]"
if not title:
title = "[untitled]"
trow = Html("tr") trow = Html("tr")
tbody += trow tbody += trow
@ -3309,7 +3307,7 @@ class MediaListPage(BasePage):
trow.extend( trow.extend(
Html("td", data, class_ = "Column" + colclass) Html("td", data, class_ = "Column" + colclass)
for (data, colclass) in media_data_row for (data, colclass) in media_data_row
) )
index += 1 index += 1