From b8e31ea1896057009ef0d3d68ae2c805af6d5195 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 25 Nov 2006 20:46:52 +0000 Subject: [PATCH] * src/GrampsDb/_ReadGedcom.py: handle _UID for FAM structure (#0000505) svn: r7694 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsDb/_ReadGedcom.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 6f2f8f91b..70c354b88 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-11-25 Don Allingham + * src/GrampsDb/_ReadGedcom.py: handle _UID for FAM structure (#0000505) * src/docgen/ODFDoc.py: don't query mime type for ODT, since some systems return only "ODT Document", which is kind of useless. Use OpenDocument Text instead. diff --git a/gramps2/src/GrampsDb/_ReadGedcom.py b/gramps2/src/GrampsDb/_ReadGedcom.py index 7701be5c0..c6d85668d 100644 --- a/gramps2/src/GrampsDb/_ReadGedcom.py +++ b/gramps2/src/GrampsDb/_ReadGedcom.py @@ -1297,6 +1297,11 @@ class GedcomParser(UpdateCallback): if self.level_is_finished(matches, 1): break + if matches[1] == TOKEN__UID: + a = RelLib.Attribute() + a.set_type((RelLib.AttributeType.CUSTOM, matches[3])) + a.set_value(matches[2]) + self.family.add_attribute(a) else: func = self.family_func.get(matches[1], self.func_family_event) func(self.family, matches, 2)