Fixed problem with place.get_source_references().

svn: r12961
This commit is contained in:
Rob G. Healey 2009-08-11 20:05:56 +00:00
parent aaf43d3690
commit eb5efcf116

View File

@ -1806,9 +1806,9 @@ class PlacePage(BasePage):
placedetail += urllinks placedetail += urllinks
# source references # source references
sourcerefs = self.get_citation_links(place.get_source_references() ) # sourcerefs = self.get_citation_links(place.get_source_references() )
if sourcerefs is not None: # if sourcerefs is not None:
placedetail += sourcerefs # placedetail += sourcerefs
# place references # place references
referenceslist = self.display_references(place_list[place.handle]) referenceslist = self.display_references(place_list[place.handle])
@ -2452,18 +2452,25 @@ class SourceListPage(BasePage):
section += table section += table
thead = Html('thead') thead = Html('thead')
table += thead table += thead
trow = Html('tr') + ( trow = Html('tr')
Html('th', ' ', class_='ColumnAttrubyte', inline=True),
Html('th', _('Name'), class_='ColumnValue', inline=True)
)
thead += trow thead += trow
for (label, colclass) in [
(None, 'RowLabel'),
(_('Name'), 'Name'),
(DHEAD, 'Date'),
(_('Page/ Volume'), 'Page') ]:
label = label or ' '
trow += Html('th', label, class_='Column%s' % colclass, inline=True)
# begin table body # begin table body
tbody = Html('tbody') tbody = Html('tbody')
table += tbody table += tbody
for index, key in enumerate(keys): for index, key in enumerate(keys):
(source, handle) = source_dict[key] (source, handle) = source_dict[key]
trow = Html('tr') + ( trow = Html('tr') + (
Html('td', index+1, class_='ColumnRowLabel', inline=True) Html('td', index+1, class_='ColumnRowLabel', inline=True)
) )