3930: Verify data tool ignores role on burial event (see previous rev)
svn: r16290
This commit is contained in:
parent
e43da1a226
commit
9e7e513b13
@ -136,15 +136,15 @@ def get_date_from_event_type(db,person,event_type):
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
def get_bapt_date(db,person):
|
def get_bapt_date(db,person):
|
||||||
|
return get_date_from_event_type(db,person,gen.lib.EventType.BAPTISM)
|
||||||
|
|
||||||
|
def get_bury_date(db,person):
|
||||||
# check role on burial event
|
# check role on burial event
|
||||||
for event_ref in person.get_event_ref_list():
|
for event_ref in person.get_event_ref_list():
|
||||||
event = find_event(db, event_ref.ref)
|
event = find_event(db, event_ref.ref)
|
||||||
if event.get_type() == gen.lib.EventType.BURIAL and \
|
if event.get_type() == gen.lib.EventType.BURIAL and \
|
||||||
event_ref.get_role() == gen.lib.EventRoleType.PRIMARY:
|
event_ref.get_role() == gen.lib.EventRoleType.PRIMARY:
|
||||||
return get_date_from_event_type(db,person,gen.lib.EventType.BAPTISM)
|
return get_date_from_event_type(db,person,gen.lib.EventType.BURIAL)
|
||||||
|
|
||||||
def get_bury_date(db,person):
|
|
||||||
return get_date_from_event_type(db,person,gen.lib.EventType.BURIAL)
|
|
||||||
|
|
||||||
def get_birth_date(db,person,estimate=False):
|
def get_birth_date(db,person,estimate=False):
|
||||||
if not person:
|
if not person:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user