diff --git a/ChangeLog b/ChangeLog index 237020b53..d3ecd2df4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-07-20 Brian Matherly + * src/ToolTips.py (RepositoryTip:get_tip): + * src/plugins/WriteGeneWeb.py (write_family, write_note_of_person): + * src/plugins/FamilyGroup.py (dump_parent): + * src/plugins/NarrativeWeb.py (display_footer, display_header): + Replace "get_note()" calls with "get_note_list()" + 2007-07-19 Brian Matherly * src/plugins/DetDescendantReport.py: Need to include attributes in Detailed Descendant report (#0001021) diff --git a/src/ToolTips.py b/src/ToolTips.py index 94bdaa0c8..97557ba4a 100644 --- a/src/ToolTips.py +++ b/src/ToolTips.py @@ -137,7 +137,6 @@ class RepositoryTip: "\t%s:\t%s\n"\ "\t%s:\t%s\n"\ "\t%s:\t%s\n"\ - "\t%s:\t%s\n"\ % ( _("Repository"),escape(self._obj.get_name()), _("Location"), @@ -150,8 +149,14 @@ class RepositoryTip: _("Telephone"), escape(self._obj.address.get_phone()), _("Email"), escape(self._obj.get_email()), _("Search Url"), escape(self._obj.get_search_url()), - _("Home Url"), escape(self._obj.get_home_url()), - _("Note"), escape(self._obj.get_note())) + _("Home Url"), escape(self._obj.get_home_url())) + + # Get the notes + notelist = self._obj.get_note_list() + for notehandle in notelist: + note = self._db.get_note_from_handle(notehandle) + s += "\t%s:\t%s\n" % ( + _("Note"), escape(note.get(False))) # Get the list of sources that reference this repository repos_handle = self._obj.get_handle() diff --git a/src/plugins/FamilyGroup.py b/src/plugins/FamilyGroup.py index 6ec877789..6db16f194 100644 --- a/src/plugins/FamilyGroup.py +++ b/src/plugins/FamilyGroup.py @@ -297,8 +297,10 @@ class FamilyGroup(Report): self.doc.end_cell() self.doc.end_row() - if self.incParNotes and (person.get_note() != ""): - self.dump_parent_line(_("Notes"),person.get_note()) + if self.incParNotes: + for notehandle in person.get_note_list(): + note = self.database.get_note_from_handle(notehandle) + self.dump_parent_line(_("Note"),note.get(False)) if self.incParNames: for alt_name in person.get_alternate_names(): diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 6d51c88c9..1f4dd9974 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -282,9 +282,12 @@ class BasePage: if self.footer: obj = db.get_object_from_handle(self.footer) if obj: - of.write('\n') + notelist = obj.get_note_list() + if notelist: + note = db.get_note_from_handle(notelist[0]) + of.write('\n') of.write('\n') of.write('\n') @@ -317,9 +320,12 @@ class BasePage: if self.header: obj = db.get_object_from_handle(self.header) if obj: - of.write('
\n') - of.write(obj.get_note(markup=True)) - of.write('
\n') + notelist = obj.get_note_list() + if notelist: + note = db.get_note_from_handle(notelist[0]) + of.write('
\n') + of.write(note.get(markup=True)) + of.write('
\n') of.write('