"7927: Exclude private data [...] for detailed ancestor report" -- partial
This commit is contained in:
parent
43e52e012b
commit
f4dac50a69
@ -100,10 +100,10 @@ class DetAncestorReport(Report):
|
||||
addimages - Whether to include images.
|
||||
pid - The Gramps ID of the center person for the report.
|
||||
name_format - Preferred format to display names
|
||||
incl_private - Whether to include private data
|
||||
"""
|
||||
Report.__init__(self, database, options, user)
|
||||
|
||||
self.db = database
|
||||
self.map = {}
|
||||
self._user = user
|
||||
|
||||
@ -111,6 +111,9 @@ class DetAncestorReport(Report):
|
||||
get_option_by_name = menu.get_option_by_name
|
||||
get_value = lambda name: get_option_by_name(name).get_value()
|
||||
|
||||
stdoptions.run_private_data_option(self, menu)
|
||||
self.db = self.database
|
||||
|
||||
self.max_generations = get_value('gen')
|
||||
self.pgbrk = get_value('pagebbg')
|
||||
self.pgbrkenotes = get_value('pageben')
|
||||
@ -755,6 +758,8 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
_("Whether to start a new page before the end notes."))
|
||||
addopt("pageben", pageben)
|
||||
|
||||
stdoptions.add_private_data_option(menu, category)
|
||||
|
||||
stdoptions.add_localization_option(menu, category)
|
||||
|
||||
# Content options
|
||||
|
Loading…
Reference in New Issue
Block a user