From 1f4f650246e32ac082e63513df233fe734de4fc4 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 30 May 2011 21:03:20 +0000 Subject: [PATCH] 4398: [GEDCOM] Import Father AND Mother ages on a family event, does not check gender. svn: r17630 --- src/plugins/lib/libgedcom.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 53c7d14e3..2bc2d627f 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -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): """