From 86fe9d11a8b9624365d535268eac4a6bf5949561 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 27 Mar 2007 04:18:14 +0000 Subject: [PATCH] fix for multiple notes. svn: r8321 --- ChangeLog | 3 +++ src/plugins/DetAncestralReport.py | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f1a434938..1a15033f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-03-26 Brian Matherly + * src/plugins/DetAncestralReport.py: fix for multiple notes. + 2007-03-26 Don Allingham * src/ViewManager.py: integrate the new DbManager * src/glade/gramps.glade: integrate the new DbManager diff --git a/src/plugins/DetAncestralReport.py b/src/plugins/DetAncestralReport.py index fb37c9a37..f96a6d789 100644 --- a/src/plugins/DetAncestralReport.py +++ b/src/plugins/DetAncestralReport.py @@ -270,11 +270,14 @@ class DetAncestorReport(Report): if key == 1: self.write_mate(person) - if person.get_note() != "" and self.includeNotes: + notelist = person.get_note_list() + if len(notelist) > 0 and self.includeNotes: self.doc.start_paragraph("DAR-NoteHeader") self.doc.write_text(_("Notes for %s") % name) self.doc.end_paragraph() - self.doc.write_note(person.get_note(),person.get_note_format(),"DAR-Entry") + for notehandle in notelist: + note = self.database.get_note_from_handle(notehandle) + self.doc.write_note(note.get(),note.get_format(),"DAR-Entry") first = True if self.includeNames: