4398: [GEDCOM] Import Father AND Mother ages on a family event, does not check gender.
svn: r17631
This commit is contained in:
parent
99a7805d8a
commit
040edcc27e
@ -4558,6 +4558,10 @@ class GedcomParser(UpdateCallback):
|
||||
attr.set_type(gen.lib.AttributeType.FATHER_AGE)
|
||||
attr.set_value(line.data)
|
||||
state.event_ref.add_attribute(attr)
|
||||
elif line.token == TOKEN_WIFE:
|
||||
#wife event can be on same level, if so call it and finish
|
||||
self.__event_wife(line, state)
|
||||
break
|
||||
|
||||
def __event_wife(self, line, state):
|
||||
"""
|
||||
@ -4575,6 +4579,10 @@ class GedcomParser(UpdateCallback):
|
||||
attr.set_type(gen.lib.AttributeType.MOTHER_AGE)
|
||||
attr.set_value(line.data)
|
||||
state.event_ref.add_attribute(attr)
|
||||
elif line.token == TOKEN_HUSB:
|
||||
#husband event can be on same level, if so call it and finish
|
||||
self.__event_husb(line, state)
|
||||
break
|
||||
|
||||
def __event_agnc(self, line, state):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user