Some cleanup work on class RepositoryList.
svn: r15135
This commit is contained in:
parent
68adc1639f
commit
14767e285f
@ -4673,7 +4673,7 @@ class RepositoryPage(BasePage):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, report, title, repo, handle, gid = None):
|
def __init__(self, report, title, repo, handle, gid = None):
|
||||||
BasePage.__init__(self, report, title)
|
BasePage.__init__(self, report, title, gid)
|
||||||
db = report.database
|
db = report.database
|
||||||
|
|
||||||
of = self.report.create_file(handle, 'repo')
|
of = self.report.create_file(handle, 'repo')
|
||||||
@ -4691,21 +4691,24 @@ class RepositoryPage(BasePage):
|
|||||||
with Html("table", class_ = "infolist repolist") as table:
|
with Html("table", class_ = "infolist repolist") as table:
|
||||||
repositorydetail += table
|
repositorydetail += table
|
||||||
|
|
||||||
# repository type
|
tbody = Html("tbody")
|
||||||
trow = Html("tr") + (
|
table += tbody
|
||||||
Html("td", THEAD, class_ = "ColumnType", inline = True),
|
|
||||||
Html("td", str(repo.type), class_ = "ColumnAttribute", inline = True)
|
|
||||||
)
|
|
||||||
table += trow
|
|
||||||
|
|
||||||
# GRAMPS ID
|
# GRAMPS ID
|
||||||
if not self.noid and gid:
|
if not self.noid and gid:
|
||||||
# repo gramps id
|
# repo gramps id
|
||||||
trow = Html("tr") + (
|
trow = Html("tr") + (
|
||||||
Html("td", GRAMPSID, class_ = "ColumnType", inline = True),
|
Html("td", GRAMPSID, class_ = "ColumnAttribute", inline = True),
|
||||||
Html("td", gid, class_ = "ColumnAttribute", inline = True)
|
Html("td", gid, class_ = "ColumnValue", inline = True)
|
||||||
)
|
)
|
||||||
table += trow
|
tbody += trow
|
||||||
|
|
||||||
|
# repository type
|
||||||
|
trow = Html("tr") + (
|
||||||
|
Html("td", THEAD, class_ = "ColumnAttribute", inline = True),
|
||||||
|
Html("td", str(repo.type), class_ = "ColumnValue", inline = True)
|
||||||
|
)
|
||||||
|
tbody += trow
|
||||||
|
|
||||||
# repository: address(es)
|
# repository: address(es)
|
||||||
addresses = self.dump_addresses(repo.get_address_list(), False)
|
addresses = self.dump_addresses(repo.get_address_list(), False)
|
||||||
|
Loading…
Reference in New Issue
Block a user