From 1f356bc5b582940ec4a37d470c7febb8cf49c967 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 25 Jun 2006 03:25:14 +0000 Subject: [PATCH] * src/plugins/BookReport.py: fix book loading svn: r6966 --- ChangeLog | 7 +++++-- src/plugins/BookReport.py | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2ba9253d4..6779fd9e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-06-24 Brian Matherly + * src/plugins/BookReport.py: fix book loading + 2006-06-24 Alex Roitman * src/ReportBase/_ReportDialog.py (report): Handle wm closing. * src/plugins/GraphViz.py (GraphVizDialog.__init__): Handle wm @@ -5,7 +8,7 @@ * src/plugins/NarrativeWeb.py (WebReportDialog.__init__): Handle wm closing. -2006-06-25 Brian Matherly +2006-06-24 Brian Matherly * src/plugins/AncestorChart2.py: fix comment * src/plugins/DecendChart.py: fix comment * src/plugins/TimeLine.py: Remove Title option @@ -13,7 +16,7 @@ 2006-06-24 Alex Roitman * debian/control (Build-Depends-Indep): Add xsltproc -2006-06-25 Brian Matherly +2006-06-24 Brian Matherly * src/docgen/ODFDoc.py: Handle exception when file is not writeable * src/docgen/ODSDoc.py: Handle exception when file is not writeable * src/docgen/OpenOfficeDoc.py: Handle exception when file is not writeable diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index 016c52cc2..c4357c806 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -400,7 +400,7 @@ class BookList: try: p = make_parser() p.setContentHandler(BookParser(self)) - p.parse("file://" + self.file) + p.parse(self.file) except (IOError,OSError,SAXParseException): pass @@ -726,10 +726,10 @@ class BookReportSelector(ManagedWindow.ManagedWindow): data = [ item.get_translated_name(), item.get_category(), item.get_name() ] if data[2] in ('simple_book_title','custom_text'): - data.append(_("Not Applicable")) + data[2]=(_("Not Applicable")) else: pname = self.db.get_person_from_gramps_id(person_id) - data.append(pname.get_primary_name().get_regular_name()) + data[2]=(pname.get_primary_name().get_regular_name()) self.bk_model.add(data) def on_add_clicked(self,obj):