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:
Tim G L Lyons 2012-02-06 22:46:37 +00:00
parent ab6abda558
commit 108e048a5f

View File

@ -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: