(SimpleBookTitle.write_report): Insert image only if it is passed.

Set empty object_id to "" (was None).
* src/plugins/BookReport.py (BookReportSelector.open_book):
Don't displpay person name for special items (title).


svn: r2111
This commit is contained in:
Alex Roitman
2003-09-10 03:05:14 +00:00
parent 07009fbe9d
commit 8d2c37f2b4
3 changed files with 18 additions and 9 deletions

View File

@ -675,8 +675,11 @@ class BookReportSelector:
self.book.append_item(item)
data = [ item.get_name(), item.get_category() ]
pname = self.db.getPerson(options[0])
data.append(pname.getPrimaryName().getRegularName())
if data[1] == _("Title"):
data.append(_("Not Applicable"))
else:
pname = self.db.getPerson(options[0])
data.append(pname.getPrimaryName().getRegularName())
self.bk_model.add(data)
def on_add_clicked(self,obj):