From 108e048a5f22a55446142e82371230cb307dcc62 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Mon, 6 Feb 2012 22:46:37 +0000 Subject: [PATCH] 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 --- src/plugins/lib/libgedcom.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 927ebf8cb..b8d520511 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -2758,6 +2758,9 @@ class GedcomParser(UpdateCallback): state.msg new_note = gen.lib.Note(message) 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) # If possible, attach the note to the relevant object if object: