From c1137c79e5c15133a4ecc6a653f14f08d10b5e39 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sat, 11 Sep 2010 11:35:38 +0000 Subject: [PATCH] 3894: [NarWeb] Narrated Website does not show Gramps-ID for sources and events svn: r15874 --- src/plugins/webreport/NarrativeWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 83bbaef3c..035f23985 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -3316,11 +3316,11 @@ class SourceListPage(BasePage): class SourcePage(BasePage): - def __init__(self, report, title, handle, src_list, gid = None): + def __init__(self, report, title, handle, src_list): db = report.database source = db.get_source_from_handle(handle) - BasePage.__init__(self, report, title, gid) + BasePage.__init__(self, report, title, source.gramps_id) of = self.report.create_file(source.get_handle(), "src") self.up = True @@ -3346,8 +3346,8 @@ class SourcePage(BasePage): table += tbody grampsid = None - if not self.noid and gid: - grampsid = gid + if not self.noid and self.gid: + grampsid = self.gid for (label, val) in [ (GRAMPSID, grampsid),