0005605: GEDCOM inport: Embedded from of MULTIMEDIA_LINK in INDIVIDUAL_RECORD does not use IdMapper
svn: r18989
This commit is contained in:
parent
72d98271a6
commit
899e911fef
@ -3227,7 +3227,6 @@ class GedcomParser(UpdateCallback):
|
|||||||
|
|
||||||
def __person_object(self, line, state):
|
def __person_object(self, line, state):
|
||||||
"""
|
"""
|
||||||
Currently, the embedded form is not supported
|
|
||||||
|
|
||||||
Embedded form
|
Embedded form
|
||||||
|
|
||||||
@ -3247,8 +3246,10 @@ class GedcomParser(UpdateCallback):
|
|||||||
@type state: CurrentState
|
@type state: CurrentState
|
||||||
"""
|
"""
|
||||||
if line.data and line.data[0] == '@':
|
if line.data and line.data[0] == '@':
|
||||||
|
# Reference to a named multimedia object defined elsewhere
|
||||||
|
gramps_id = self.oid_map[line.data]
|
||||||
|
handle = self.__find_object_handle(gramps_id)
|
||||||
ref = gen.lib.MediaRef()
|
ref = gen.lib.MediaRef()
|
||||||
handle = self.__find_object_handle(line.data[1:-1])
|
|
||||||
ref.set_reference_handle(handle)
|
ref.set_reference_handle(handle)
|
||||||
state.person.add_media_reference(ref)
|
state.person.add_media_reference(ref)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user