0001571: Option on import to preserve Non-standard data from GEDCOM files (currently discarded without notice). Change the generated NoteType to GEDCOM import.
svn: r18832
This commit is contained in:
parent
ab6abda558
commit
108e048a5f
@ -2758,6 +2758,9 @@ class GedcomParser(UpdateCallback):
|
|||||||
state.msg
|
state.msg
|
||||||
new_note = gen.lib.Note(message)
|
new_note = gen.lib.Note(message)
|
||||||
new_note.set_handle(Utils.create_id())
|
new_note.set_handle(Utils.create_id())
|
||||||
|
note_type = gen.lib.NoteType()
|
||||||
|
note_type.set((gen.lib.NoteType.CUSTOM, "GEDCOM import"))
|
||||||
|
new_note.set_type(note_type)
|
||||||
self.dbase.add_note(new_note, self.trans)
|
self.dbase.add_note(new_note, self.trans)
|
||||||
# If possible, attach the note to the relevant object
|
# If possible, attach the note to the relevant object
|
||||||
if object:
|
if object:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user