From 90ff13a4dda676de55179c04769ee7b2fd1420a2 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 26 Jul 2014 09:52:31 -0700 Subject: [PATCH] 4011: "reports" should have a "no private information" button --- gramps/plugins/textreport/endoflinereport.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/textreport/endoflinereport.py b/gramps/plugins/textreport/endoflinereport.py index 2813e840d..ed0ed876b 100644 --- a/gramps/plugins/textreport/endoflinereport.py +++ b/gramps/plugins/textreport/endoflinereport.py @@ -3,7 +3,7 @@ # # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant -# Copyright (C) 2013 Paul Franklin +# Copyright (C) 2013-2014 Paul Franklin # # 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 @@ -67,12 +67,17 @@ class EndOfLineReport(Report): This report needs the following parameters (class variables) that come in the options class. name_format - Preferred format to display names + incl_private - Whether to include private data """ Report.__init__(self, database, options, user) + menu = options.menu + + stdoptions.run_private_data_option(self, menu) + pid = menu.get_option_by_name('pid').get_value() - self.center_person = database.get_person_from_gramps_id(pid) + self.center_person = self.database.get_person_from_gramps_id(pid) if (self.center_person == None) : raise ReportError(_("Person %s is not in the Database") % pid ) @@ -254,6 +259,8 @@ class EndOfLineOptions(MenuReportOptions): stdoptions.add_name_format_option(menu, category_name) + stdoptions.add_private_data_option(menu, category_name) + stdoptions.add_localization_option(menu, category_name) def make_default_style(self, default_style):