4011: "reports" should have a "no private information" button

This commit is contained in:
Paul Franklin 2014-07-26 09:52:29 -07:00
parent f4dac50a69
commit 24299857b7

View File

@ -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)
##################