2006-11-21 Don Allingham <don@gramps-project.org>

* src/Utils.py (probably_alive): use get_primary_event_ref_list()
	* src/RelLib/_Person.py: Add get_primary_event_ref_list()



svn: r7663
This commit is contained in:
Don Allingham
2006-11-21 16:20:35 +00:00
parent d88c6bf987
commit 231f9a1277
3 changed files with 18 additions and 3 deletions

View File

@ -573,9 +573,7 @@ def probably_alive(person,db,current_year=None,limit=0):
# Look for Cause Of Death, Burial or Cremation events.
# These are fairly good indications that someone's not alive.
for ev_ref in person.event_ref_list:
if ev_ref.get_role() != RelLib.EventRoleType.PRIMARY:
continue
for ev_ref in person.get_primary_event_ref_list():
ev = db.get_event_from_handle(ev_ref.ref)
if ev and int(ev.get_type()) in [RelLib.EventType.CAUSE_DEATH,
RelLib.EventType.BURIAL,