4530: Gedcom import looses custom family event description
svn: r16374
This commit is contained in:
parent
198e222e91
commit
5a67169652
@ -2070,7 +2070,7 @@ class GedcomParser(UpdateCallback):
|
|||||||
self.family_func = {
|
self.family_func = {
|
||||||
# +1 <<FAMILY_EVENT_STRUCTURE>> {0:M}
|
# +1 <<FAMILY_EVENT_STRUCTURE>> {0:M}
|
||||||
TOKEN_GEVENT : self.__family_std_event,
|
TOKEN_GEVENT : self.__family_std_event,
|
||||||
TOKEN_EVEN : self.__family_even,
|
TOKEN_EVEN : self.__fam_even,
|
||||||
# +1 HUSB @<XREF:INDI>@ {0:1}
|
# +1 HUSB @<XREF:INDI>@ {0:1}
|
||||||
TOKEN_HUSB : self.__family_husb,
|
TOKEN_HUSB : self.__family_husb,
|
||||||
# +1 WIFE @<XREF:INDI>@ {0:1}
|
# +1 WIFE @<XREF:INDI>@ {0:1}
|
||||||
@ -2760,6 +2760,17 @@ class GedcomParser(UpdateCallback):
|
|||||||
self.event_parse_tbl, line.data)
|
self.event_parse_tbl, line.data)
|
||||||
state.person.add_event_ref(event_ref)
|
state.person.add_event_ref(event_ref)
|
||||||
|
|
||||||
|
def __fam_event(self, line, state):
|
||||||
|
"""
|
||||||
|
@param line: The current line in GedLine format
|
||||||
|
@type line: GedLine
|
||||||
|
@param state: The current state
|
||||||
|
@type state: CurrentState
|
||||||
|
"""
|
||||||
|
event_ref = self.__build_family_event_pair(state, gen.lib.EventType.CUSTOM,
|
||||||
|
self.event_parse_tbl, line.data)
|
||||||
|
state.family.add_event_ref(event_ref)
|
||||||
|
|
||||||
def __skip_record(self, line, state):
|
def __skip_record(self, line, state):
|
||||||
"""
|
"""
|
||||||
@param line: The current line in GedLine format
|
@param line: The current line in GedLine format
|
||||||
|
Loading…
Reference in New Issue
Block a user