3894: [NarWeb] Narrated Website does not show Gramps-ID for sources and events
svn: r15874
This commit is contained in:
parent
e7749890f7
commit
c1137c79e5
@ -3316,11 +3316,11 @@ class SourceListPage(BasePage):
|
|||||||
|
|
||||||
class SourcePage(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
|
db = report.database
|
||||||
|
|
||||||
source = db.get_source_from_handle(handle)
|
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")
|
of = self.report.create_file(source.get_handle(), "src")
|
||||||
self.up = True
|
self.up = True
|
||||||
@ -3346,8 +3346,8 @@ class SourcePage(BasePage):
|
|||||||
table += tbody
|
table += tbody
|
||||||
|
|
||||||
grampsid = None
|
grampsid = None
|
||||||
if not self.noid and gid:
|
if not self.noid and self.gid:
|
||||||
grampsid = gid
|
grampsid = self.gid
|
||||||
|
|
||||||
for (label, val) in [
|
for (label, val) in [
|
||||||
(GRAMPSID, grampsid),
|
(GRAMPSID, grampsid),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user