Removed source.get_reporef_list() from class SourcePage(). There is no usable information to display.
svn: r12941
This commit is contained in:
parent
7da65b05c3
commit
9d6ddde2d8
@ -447,26 +447,6 @@ class BasePage(object):
|
|||||||
|
|
||||||
return htmllist
|
return htmllist
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# # Web Page Fortmatter and writer
|
|
||||||
#
|
|
||||||
# ---------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
def mywriter(self, htmlinstance, of):
|
|
||||||
"""
|
|
||||||
Will format, write, and close the file
|
|
||||||
|
|
||||||
of -- open file that is being written to
|
|
||||||
htmlinstance -- web page created with libhtml
|
|
||||||
src/plugins/lib/libhtml.py
|
|
||||||
"""
|
|
||||||
|
|
||||||
htmlinstance.write(lambda line: of.write(line + '\n'))
|
|
||||||
|
|
||||||
# closes the file
|
|
||||||
self.report.close_file(of)
|
|
||||||
|
|
||||||
def write_out_addresses(self, obj, spec=False):
|
def write_out_addresses(self, obj, spec=False):
|
||||||
"""
|
"""
|
||||||
will display an object's addresses, url list, note list,
|
will display an object's addresses, url list, note list,
|
||||||
@ -1292,6 +1272,26 @@ class BasePage(object):
|
|||||||
# return hyperlink to its callers
|
# return hyperlink to its callers
|
||||||
return hyper
|
return hyper
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# # Web Page Fortmatter and writer
|
||||||
|
#
|
||||||
|
# ---------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
def mywriter(self, htmlinstance, of):
|
||||||
|
"""
|
||||||
|
Will format, write, and close the file
|
||||||
|
|
||||||
|
of -- open file that is being written to
|
||||||
|
htmlinstance -- web page created with libhtml
|
||||||
|
src/plugins/lib/libhtml.py
|
||||||
|
"""
|
||||||
|
|
||||||
|
htmlinstance.write(lambda line: of.write(line + '\n'))
|
||||||
|
|
||||||
|
# closes the file
|
||||||
|
self.report.close_file(of)
|
||||||
|
|
||||||
class IndividualListPage(BasePage):
|
class IndividualListPage(BasePage):
|
||||||
|
|
||||||
def __init__(self, report, title, person_handle_list):
|
def __init__(self, report, title, person_handle_list):
|
||||||
@ -2509,30 +2509,26 @@ class SourcePage(BasePage):
|
|||||||
# add section title
|
# add section title
|
||||||
section += Html('h3', html_escape(self.page_title.strip()), inline=True)
|
section += Html('h3', html_escape(self.page_title.strip()), inline=True)
|
||||||
|
|
||||||
# begin summaryarea division
|
# begin sources table
|
||||||
with Html('div', id='summaryarea') as summaryarea:
|
with Html('table', class_='infolist source') as table:
|
||||||
section += summaryarea
|
section += table
|
||||||
|
|
||||||
# begin sources table
|
grampsid = None
|
||||||
with Html('table', class_='infolist source') as table:
|
if not self.noid:
|
||||||
summaryarea += table
|
grampsid = source.gramps_id
|
||||||
|
|
||||||
grampsid = None
|
for (label, val) in [(_('GRAMPS ID'), grampsid),
|
||||||
if not self.noid:
|
(_('Author'), source.author),
|
||||||
grampsid = source.gramps_id
|
(_('Publication information'), source.pubinfo),
|
||||||
|
(_('Abbreviation'), source.abbrev)]:
|
||||||
|
if val:
|
||||||
|
trow = Html('tr') + (
|
||||||
|
Html('td', label, class_='ColumnAttribute'),
|
||||||
|
Html('td', val, class_='ColumnValue')
|
||||||
|
)
|
||||||
|
table += trow
|
||||||
|
|
||||||
for (label, val) in [(_('GRAMPS ID'), grampsid),
|
# additional media
|
||||||
(_('Author'), source.author),
|
|
||||||
(_('Publication information'), source.pubinfo),
|
|
||||||
(_('Abbreviation'), source.abbrev)]:
|
|
||||||
if val:
|
|
||||||
trow = Html('tr') + (
|
|
||||||
Html('td', label, class_='ColumnAttribute'),
|
|
||||||
Html('td', val, class_='ColumnValue')
|
|
||||||
)
|
|
||||||
table += trow
|
|
||||||
|
|
||||||
# additional gallery
|
|
||||||
sourcegallery = self.display_additional_images_as_gallery(media_list)
|
sourcegallery = self.display_additional_images_as_gallery(media_list)
|
||||||
if sourcegallery is not None:
|
if sourcegallery is not None:
|
||||||
section += sourcegallery
|
section += sourcegallery
|
||||||
@ -2542,14 +2538,6 @@ class SourcePage(BasePage):
|
|||||||
if sourcenotes is not None:
|
if sourcenotes is not None:
|
||||||
section += sourcenotes
|
section += sourcenotes
|
||||||
|
|
||||||
# # get source repositories
|
|
||||||
# # TODO: Figure if this is possible
|
|
||||||
# for handle in source.get_repository_handles():
|
|
||||||
# repo = db.get_repository_from_handle(handle)
|
|
||||||
# sourcerepo = self.write_repositories(repo, handle)
|
|
||||||
# if sourcerepo is not None:
|
|
||||||
# section += sourcerepo
|
|
||||||
|
|
||||||
# references
|
# references
|
||||||
source_references = self.display_references(src_list[source.handle])
|
source_references = self.display_references(src_list[source.handle])
|
||||||
if source_references is not None:
|
if source_references is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user