4398: [GEDCOM] Import Father AND Mother ages on a family event, does not check gender.

svn: r17631
This commit is contained in:
Benny Malengier 2011-05-30 21:03:31 +00:00
parent 99a7805d8a
commit 040edcc27e

View File

@ -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):
"""