a person is not alive.

svn: r3500
This commit is contained in:
Don Allingham 2004-08-24 04:15:23 +00:00
parent f987964322
commit 680c93e6d9
2 changed files with 9 additions and 1 deletions

View File

@ -543,6 +543,14 @@ class Person(PrimaryObject,SourceNote):
"""Returns true if the person may be alive.""" """Returns true if the person may be alive."""
if self.death_handle: if self.death_handle:
return False return False
# Look for Cause Of Death, Burial or Cremation events.
# These are fairly good indications that someone's not alive.
for ev_handle in self.event_list:
ev = db.get_event_from_handle(ev_handle)
if ev.name in ["Cause Of Death", "Burial", "Cremation"]:
return 0
if self.birth_handle: if self.birth_handle:
birth = db.get_event_from_handle(self.birth_handle) birth = db.get_event_from_handle(self.birth_handle)
if birth.get_date() != "": if birth.get_date() != "":