3834: Death date on individuals an surnames pages in Narrative Web Report

svn: r15099
This commit is contained in:
Doug Blank 2010-04-13 02:38:26 +00:00
parent 9e505f3419
commit 42f948b606

View File

@ -1926,7 +1926,7 @@ class IndividualListPage(BasePage):
death_date = _find_death_date(db, person)
if death_date is not None:
tcell += death_date
tcell += _dd.display(death_date)
else:
tcell += " "
@ -2087,7 +2087,7 @@ class SurnamePage(BasePage):
death_date = _find_death_date(db, person)
if death_date is not None:
tcell += death_date
tcell += _dd.display(death_date)
else:
tcell += " "
@ -6234,6 +6234,7 @@ def _find_death_date(db, person):
death_ref = person.get_death_ref()
if death_ref:
death = db.get_event_from_handle(death_ref.ref)
if death:
return death.get_date_object()
else:
event_list = person.get_primary_event_ref_list()