* src/GrampsDb/_ReadGedcom.py: handle _UID for FAM structure (#0000505)

svn: r7694
This commit is contained in:
Don Allingham 2006-11-25 20:46:52 +00:00
parent aad2755abc
commit e824a00edc
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2006-11-25 Don Allingham <don@gramps-project.org>
* 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.

View File

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