From eb69aa45460b66ade584d0625be9cebd4590e38a Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 28 Mar 2002 15:05:17 +0000 Subject: [PATCH] Fixed Note handing svn: r869 --- gramps/src/plugins/ReadGedcom.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/gramps/src/plugins/ReadGedcom.py b/gramps/src/plugins/ReadGedcom.py index e04e1aa4c..73af4280d 100644 --- a/gramps/src/plugins/ReadGedcom.py +++ b/gramps/src/plugins/ReadGedcom.py @@ -529,12 +529,12 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(self.family) + self.share_note.append(self.family) self.family.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() self.nmap[matches[2]] = noteobj - self.share_note(self.family) + self.share_note.append(self.family) self.family.setNoteObj(noteobj) else: event = Event() @@ -605,11 +605,11 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(self.person) + self.share_note.append(self.person) self.person.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() - self.share_note(self.person) + self.share_note.append(self.person) self.nmap[matches[2]] = noteobj self.person.setNoteObj(noteobj) elif matches[1] == "SEX": @@ -924,12 +924,12 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(address) + self.share_note.append(address) address.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() self.nmap[matches[2]] = noteobj - self.share_note(address) + self.share_note.append(address) address.setNoteObj(noteobj) else: self.barf(level+1) @@ -1004,12 +1004,12 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(ord) + self.share_note.append(ord) ord.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() self.nmap[matches[2]] = noteobj - self.share_note(ord) + self.share_note.append(ord) ord.setNoteObj(noteobj) elif matches[1] == "STAT": if const.lds_status.has_key(matches[2]): @@ -1291,12 +1291,12 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(event) + self.share_note.append(event) event.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() self.nmap[matches[2]] = noteobj - self.share_note(event) + self.share_note.append(event) event.setNoteObj(noteobj) else: self.barf(level+1) @@ -1332,12 +1332,12 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(source) + self.share_note.append(source) source.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() self.nmap[matches[2]] = noteobj - self.share_note(source) + self.share_note.append(source) source.setNoteObj(noteobj) else: self.barf(level+1) @@ -1418,12 +1418,12 @@ class GedcomParser: self.ignore_sub_junk(2) else: if self.nmap.has_key(matches[2]): - self.share_note(name) + self.share_note.append(name) name.setNoteObj(self.nmap[matches[2]]) else: noteobj = Note() self.nmap[matches[2]] = noteobj - self.share_note(name) + self.share_note.append(name) name.setNoteObj(noteobj) else: self.barf(level+1)