From 827a63ed2e3312eb00c868ced678c5339b537641 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 3 Jul 2001 22:37:00 +0000 Subject: [PATCH] Fixed dropping of notes svn: r222 --- src/GrampsParser.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/GrampsParser.py b/src/GrampsParser.py index 6daf65cf2..254bcc78d 100644 --- a/src/GrampsParser.py +++ b/src/GrampsParser.py @@ -307,8 +307,8 @@ class GrampsParser(handler.ContentHandler): #--------------------------------------------------------------------- def start_sourceref(self,attrs): self.source_ref = SourceRef() - self.source = self.db.findSourceNoMap(u2l(attrs["ref"])) - self.source_ref.setBase(self.source) + source = self.db.findSourceNoMap(u2l(attrs["ref"])) + self.source_ref.setBase(source) if self.address: self.address.setSourceRef(self.source_ref) elif self.name: @@ -648,20 +648,34 @@ class GrampsParser(handler.ContentHandler): note = fix_spaces(self.note_list) else: note = u2l(tag) + + print note + if self.address: self.address.setNote(note) + print "Address" elif self.attribute: self.attribute.setNote(note) + print "Attribute" elif self.name: self.name.setNote(note) + print "Name" elif self.source: self.source.setNote(note) + print "source" elif self.event: self.event.setNote(note) + print "event" elif self.person: + print self.person.getPrimaryName().getName() + print "-------------------------------------" + print note self.person.setNote(note) elif self.family: self.family.setNote(note) + print "Family" + else: + print "Ignored" self.note_list = [] #---------------------------------------------------------------------