From 560713e6c1f576505f07df538c3ec9c06519bb09 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 3 Jun 2001 18:37:23 +0000 Subject: [PATCH] Fixed dropping of some fields for an individual svn: r81 --- gramps/src/plugins/ReadGedcom.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gramps/src/plugins/ReadGedcom.py b/gramps/src/plugins/ReadGedcom.py index cb67f3719..fccd45d4b 100644 --- a/gramps/src/plugins/ReadGedcom.py +++ b/gramps/src/plugins/ReadGedcom.py @@ -483,6 +483,7 @@ class GedcomParser: while 1: matches = self.get_next() + print matches[0],matches[1],matches[2] if int(matches[0]) == 0: self.backup() return @@ -504,19 +505,18 @@ class GedcomParser: elif matches[1] == "AFN": pass elif matches[1] == "CHAN": - self.ignore_sub_junk(1) + self.ignore_sub_junk(2) elif matches[1] == "ALIA": pass elif matches[1] == "ANCI" or matches[1] == "DESI": pass elif matches[1] == "REFN": - self.ignore_sub_junk(1) + self.ignore_sub_junk(2) elif matches[1] == "SOUR": - self.ignore_sub_junk(1) + self.ignore_sub_junk(2) elif matches[1] == "OBJE": if matches[2] and matches[2][0] == '@': self.barf(2) -# self.ignore_sub_junk(2) else: self.parse_person_object(2) elif matches[1] == "NOTE": @@ -539,7 +539,9 @@ class GedcomParser: elif matches[1] == "EVEN": pass elif matches[1] == "FAMS": - self.person.addFamily(self.db.findFamily(matches[2],self.fmap)) + family = self.db.findFamily(matches[2],self.fmap) + print self.person.getPrimaryName().getName(),matches[2] + self.person.addFamily(family) note = self.parse_optional_note(2) elif matches[1] == "FAMC": type,note = self.parse_famc_type(2)