* src/GrampsDbUtils/_GedcomParse.py: Fix creation of Nobility Title
svn: r8250
This commit is contained in:
parent
b9b069b620
commit
66ea62668c
@ -2,7 +2,7 @@
|
|||||||
* src/RelLib/_AttributeType.py: Add WITNESS (used by GEDCOM parser to
|
* src/RelLib/_AttributeType.py: Add WITNESS (used by GEDCOM parser to
|
||||||
import textual event witness information
|
import textual event witness information
|
||||||
* src/GrampsDbUtils/_GedcomParse.py: Support for some types of Witness
|
* 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
|
* src/GrampsDbUtils/_GedcomTokens.py: Add MAP,LATI,LONG
|
||||||
|
|
||||||
|
|
||||||
|
@ -1632,6 +1632,7 @@ class GedcomParser(UpdateCallback):
|
|||||||
event_ref = RelLib.EventRef()
|
event_ref = RelLib.EventRef()
|
||||||
event.set_gramps_id(self.emapper.find_next())
|
event.set_gramps_id(self.emapper.find_next())
|
||||||
event.set_type(RelLib.EventType.NOB_TITLE)
|
event.set_type(RelLib.EventType.NOB_TITLE)
|
||||||
|
event.set_description(line.data)
|
||||||
|
|
||||||
sub_state = GedcomUtils.CurrentState()
|
sub_state = GedcomUtils.CurrentState()
|
||||||
sub_state.person = state.person
|
sub_state.person = state.person
|
||||||
@ -1643,6 +1644,8 @@ class GedcomParser(UpdateCallback):
|
|||||||
|
|
||||||
person_event_name(event, state.person)
|
person_event_name(event, state.person)
|
||||||
self.dbase.add_event(event, self.trans)
|
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):
|
def func_person_attr_plac(self, line, state):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user