From 14767e285fcb158007a6ee64639ccb232176fbb3 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 15 Apr 2010 06:49:26 +0000 Subject: [PATCH] Some cleanup work on class RepositoryList. svn: r15135 --- src/plugins/webreport/NarrativeWeb.py | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index f6d2b2f8c..fc9a9f214 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4673,7 +4673,7 @@ class RepositoryPage(BasePage): """ def __init__(self, report, title, repo, handle, gid = None): - BasePage.__init__(self, report, title) + BasePage.__init__(self, report, title, gid) db = report.database of = self.report.create_file(handle, 'repo') @@ -4691,21 +4691,24 @@ class RepositoryPage(BasePage): with Html("table", class_ = "infolist repolist") as table: repositorydetail += table - # repository type - trow = Html("tr") + ( - Html("td", THEAD, class_ = "ColumnType", inline = True), - Html("td", str(repo.type), class_ = "ColumnAttribute", inline = True) - ) - table += trow - + tbody = Html("tbody") + table += tbody + # GRAMPS ID if not self.noid and gid: # repo gramps id trow = Html("tr") + ( - Html("td", GRAMPSID, class_ = "ColumnType", inline = True), - Html("td", gid, class_ = "ColumnAttribute", inline = True) + Html("td", GRAMPSID, 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) addresses = self.dump_addresses(repo.get_address_list(), False)