From 5d46ae352de8e73b43324dc491665f270bd53992 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 25 Jan 2013 12:51:05 +0000 Subject: [PATCH] 6364: dead people are shown as alive in narrated web page export svn: r21218 --- gramps/gen/utils/alive.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/utils/alive.py b/gramps/gen/utils/alive.py index 53c0c55dc..801cf22d3 100644 --- a/gramps/gen/utils/alive.py +++ b/gramps/gen/utils/alive.py @@ -105,9 +105,9 @@ class ProbablyAlive(object): if death_ref and death_ref.get_role().is_primary(): if death_ref: death = self.db.get_event_from_handle(death_ref.ref) - if death and death.get_date_object().get_start_date() != Date.EMPTY: + if death and death.get_date_object().is_valid(): death_date = death.get_date_object() - elif death: # has a death event, but it is empty: + elif death: # has a death event, but it is no valid: death_date = Today() # before today death_date.set_modifier(Date.MOD_BEFORE) explain = _("death event without date") @@ -120,7 +120,7 @@ class ProbablyAlive(object): ev = self.db.get_event_from_handle(ev_ref.ref) if ev and ev.type.is_death_fallback(): death_date = ev.get_date_object() - if death_date.get_start_date() != Date.EMPTY: + if death_date.get_start_date().is_valid(): explain = _("death-related evidence") else: death_date = Today() # before today