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

This commit is contained in:
Paul Franklin 2014-07-26 09:52:30 -07:00
parent 1d00e5a2fb
commit 2998a8d03b

View File

@ -4,7 +4,7 @@
# Copyright (C) 2008-2009 Brian G. Matherly
# Copyright (C) 2009 Rob G. Healey <robhealey1@gmail.com>
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2012-2013 Paul Franklin
# Copyright (C) 2012-2014 Paul Franklin
#
# 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
@ -76,6 +76,7 @@ class BirthdayReport(Report):
Create the BirthdayReport object that produces the report.
name_format - Preferred format to display names
incl_private - Whether to include private data
"""
def __init__(self, database, options, user):
Report.__init__(self, database, options, user)
@ -83,6 +84,8 @@ class BirthdayReport(Report):
menu = options.menu
mgobn = lambda name:options.menu.get_option_by_name(name).get_value()
stdoptions.run_private_data_option(self, menu)
self.titletext = mgobn('titletext')
self.relationships = mgobn('relationships')
self.year = mgobn('year')
@ -454,6 +457,8 @@ class BirthdayOptions(MenuReportOptions):
maiden_name.set_help(_("Select married women's displayed surname"))
menu.add_option(category_name, "maiden_name", maiden_name)
stdoptions.add_private_data_option(menu, category_name)
alive = BooleanOption(_("Include only living people"), True)
alive.set_help(_("Include only living people in the report"))
menu.add_option(category_name, "alive", alive)