From d33bb7839cb4954ce44eef05e7af9e627b7b41f4 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 5 Jul 2003 21:50:23 +0000 Subject: [PATCH] Update svn: r1822 --- src/plugins/AncestorReport.py | 2 +- src/plugins/BookReport.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/AncestorReport.py b/src/plugins/AncestorReport.py index 534cb7ed5..0d624b4a7 100644 --- a/src/plugins/AncestorReport.py +++ b/src/plugins/AncestorReport.py @@ -1,7 +1,7 @@ # # Gramps - a GTK+/GNOME based genealogy program # -# Copyright (C) 2000 Donald N. Allingham +# Copyright (C) 2000-2003 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/plugins/BookReport.py b/src/plugins/BookReport.py index 261611c19..b23ed19b4 100644 --- a/src/plugins/BookReport.py +++ b/src/plugins/BookReport.py @@ -679,7 +679,10 @@ class BookReportSelector: if not iter: return data = self.av_model.get_data(iter,range(self.av_ncols)) - data.append(self.person.getPrimaryName().getRegularName()) + if data[1] == _("Title"): + data.append(_("Not Applicable")) + else: + data.append(self.person.getPrimaryName().getRegularName()) self.bk_model.add(data) item = BookItem(data[0]) options = item.get_options() @@ -749,7 +752,7 @@ class BookReportSelector: style_name = item.get_style_name() opt_dlg = options_dialog(self.db,self.person,options,style_name) opt_dlg.window.destroy() - if opt_dlg.person: + if opt_dlg.person and data[1] != _("Title"): self.bk_model.model.set_value(iter,2, opt_dlg.person.getPrimaryName().getRegularName()) item.set_options(opt_dlg.options)