* src/plugins/BookReport.py: fix book loading

svn: r6966
This commit is contained in:
Brian Matherly
2006-06-25 03:25:14 +00:00
parent 199c6b2412
commit 1f356bc5b5
2 changed files with 8 additions and 5 deletions

View File

@@ -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):