From 7626068792d7a3154a559f0c0424bce672e6cecc Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 26 Jul 2014 09:52:30 -0700 Subject: [PATCH] 4011: "reports" should have a "no private information" button --- gramps/plugins/drawreport/descendtree.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/drawreport/descendtree.py b/gramps/plugins/drawreport/descendtree.py index 7f90d59a3..1f7ab5aef 100644 --- a/gramps/plugins/drawreport/descendtree.py +++ b/gramps/plugins/drawreport/descendtree.py @@ -1271,12 +1271,15 @@ class DescendTree(Report): database - the GRAMPS database instance options - instance of the Options class for this report user - a gen.user.User() instance + + incl_private - Whether to include private data """ Report.__init__(self, database, options, user) self.options = options - self.database = database + stdoptions.run_private_data_option(self, options.menu) + lang = options.menu.get_option_by_name('trans').get_value() self._locale = self.set_locale(lang) @@ -1518,6 +1521,8 @@ class DescendTreeOptions(MenuReportOptions): "resulting in a smaller tree")) menu.add_option(category_name, "compress_tree", compresst) + stdoptions.add_private_data_option(menu, category_name) + stdoptions.add_localization_option(menu, category_name) ##################