4011: "reports" should have a "no private information" button
This commit is contained in:
parent
7f8b3e538c
commit
0e805c1f5c
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2008-2011 Reinhard Müller
|
# Copyright (C) 2008-2011 Reinhard Müller
|
||||||
# Copyright (C) 2010 Jakim Friant
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -58,10 +58,18 @@ from gramps.gen.constfunc import cuni
|
|||||||
class RecordsReport(Report):
|
class RecordsReport(Report):
|
||||||
|
|
||||||
def __init__(self, database, options, user):
|
def __init__(self, database, options, user):
|
||||||
|
"""
|
||||||
|
This report needs the following parameters (class variables)
|
||||||
|
that come in the options class.
|
||||||
|
|
||||||
|
incl_private - Whether to include private data
|
||||||
|
"""
|
||||||
|
|
||||||
Report.__init__(self, database, options, user)
|
Report.__init__(self, database, options, user)
|
||||||
menu = options.menu
|
menu = options.menu
|
||||||
|
|
||||||
|
stdoptions.run_private_data_option(self, menu)
|
||||||
|
|
||||||
self.filter_option = menu.get_option_by_name('filter')
|
self.filter_option = menu.get_option_by_name('filter')
|
||||||
self.filter = self.filter_option.get_filter()
|
self.filter = self.filter_option.get_filter()
|
||||||
|
|
||||||
@ -193,6 +201,8 @@ class RecordsReportOptions(MenuReportOptions):
|
|||||||
footer = StringOption(_("Footer text"), "")
|
footer = StringOption(_("Footer text"), "")
|
||||||
menu.add_option(category_name, "footer", footer)
|
menu.add_option(category_name, "footer", footer)
|
||||||
|
|
||||||
|
stdoptions.add_private_data_option(menu, category_name)
|
||||||
|
|
||||||
stdoptions.add_localization_option(menu, category_name)
|
stdoptions.add_localization_option(menu, category_name)
|
||||||
|
|
||||||
for (text, varname, default) in RECORDS:
|
for (text, varname, default) in RECORDS:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user