From 24299857b70ed50c42f4de2a5ae47db0d92f2b3c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 26 Jul 2014 09:52:29 -0700 Subject: [PATCH] 4011: "reports" should have a "no private information" button --- gramps/plugins/drawreport/ancestortree.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/drawreport/ancestortree.py b/gramps/plugins/drawreport/ancestortree.py index 389f7efea..ae220c509 100644 --- a/gramps/plugins/drawreport/ancestortree.py +++ b/gramps/plugins/drawreport/ancestortree.py @@ -660,14 +660,14 @@ class AncestorTree(Report): database - the GRAMPS database instance options - instance of the Options class for this report user - a gen.user.User() instance - """ Report.__init__(self, database, options, user) self.options = options - self.database = database self._user = user + stdoptions.run_private_data_option(self, options.menu) + lang = options.menu.get_option_by_name('trans').get_value() self._locale = self.set_locale(lang) @@ -683,6 +683,8 @@ class AncestorTree(Report): indblank - Whether to include blank pages. compress - Whether to compress chart. + incl_private - Whether to include private data + We will 1. a canvas in its full one-page size 2. a page that we wish to print on @@ -927,6 +929,8 @@ class AncestorTreeOptions(MenuReportOptions): centerDisp.set_help(_("Which Display format to use the center person")) menu.add_option(category_name, "center_uses", centerDisp) + stdoptions.add_private_data_option(menu, category_name) + stdoptions.add_localization_option(menu, category_name) ##################