From 66ea62668c1444984d3767440141265902651033 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Mon, 26 Feb 2007 20:54:08 +0000 Subject: [PATCH] * src/GrampsDbUtils/_GedcomParse.py: Fix creation of Nobility Title svn: r8250 --- ChangeLog | 2 +- src/GrampsDbUtils/_GedcomParse.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 00c7633d2..b6580e6e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,7 +2,7 @@ * src/RelLib/_AttributeType.py: Add WITNESS (used by GEDCOM parser to import textual event witness information * src/GrampsDbUtils/_GedcomParse.py: Support for some types of Witness - data; Parse MAP/LATI/LONG + data; Parse MAP/LATI/LONG; Fix creation of Nobility Title * src/GrampsDbUtils/_GedcomTokens.py: Add MAP,LATI,LONG diff --git a/src/GrampsDbUtils/_GedcomParse.py b/src/GrampsDbUtils/_GedcomParse.py index 9448cb144..8ab652744 100644 --- a/src/GrampsDbUtils/_GedcomParse.py +++ b/src/GrampsDbUtils/_GedcomParse.py @@ -1632,6 +1632,7 @@ class GedcomParser(UpdateCallback): event_ref = RelLib.EventRef() event.set_gramps_id(self.emapper.find_next()) event.set_type(RelLib.EventType.NOB_TITLE) + event.set_description(line.data) sub_state = GedcomUtils.CurrentState() sub_state.person = state.person @@ -1643,6 +1644,8 @@ class GedcomParser(UpdateCallback): person_event_name(event, state.person) self.dbase.add_event(event, self.trans) + event_ref.ref = event.handle + state.person.add_event_ref(event_ref) def func_person_attr_plac(self, line, state): """