4011: "reports" should have a "no private information" button
This commit is contained in:
parent
1d00e5a2fb
commit
2998a8d03b
@ -4,7 +4,7 @@
|
|||||||
# Copyright (C) 2008-2009 Brian G. Matherly
|
# Copyright (C) 2008-2009 Brian G. Matherly
|
||||||
# Copyright (C) 2009 Rob G. Healey <robhealey1@gmail.com>
|
# Copyright (C) 2009 Rob G. Healey <robhealey1@gmail.com>
|
||||||
# Copyright (C) 2010 Jakim Friant
|
# 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
|
# 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
|
||||||
@ -76,6 +76,7 @@ class BirthdayReport(Report):
|
|||||||
Create the BirthdayReport object that produces the report.
|
Create the BirthdayReport object that produces the report.
|
||||||
|
|
||||||
name_format - Preferred format to display names
|
name_format - Preferred format to display names
|
||||||
|
incl_private - Whether to include private data
|
||||||
"""
|
"""
|
||||||
def __init__(self, database, options, user):
|
def __init__(self, database, options, user):
|
||||||
Report.__init__(self, database, options, user)
|
Report.__init__(self, database, options, user)
|
||||||
@ -83,6 +84,8 @@ class BirthdayReport(Report):
|
|||||||
menu = options.menu
|
menu = options.menu
|
||||||
mgobn = lambda name:options.menu.get_option_by_name(name).get_value()
|
mgobn = lambda name:options.menu.get_option_by_name(name).get_value()
|
||||||
|
|
||||||
|
stdoptions.run_private_data_option(self, menu)
|
||||||
|
|
||||||
self.titletext = mgobn('titletext')
|
self.titletext = mgobn('titletext')
|
||||||
self.relationships = mgobn('relationships')
|
self.relationships = mgobn('relationships')
|
||||||
self.year = mgobn('year')
|
self.year = mgobn('year')
|
||||||
@ -454,6 +457,8 @@ class BirthdayOptions(MenuReportOptions):
|
|||||||
maiden_name.set_help(_("Select married women's displayed surname"))
|
maiden_name.set_help(_("Select married women's displayed surname"))
|
||||||
menu.add_option(category_name, "maiden_name", maiden_name)
|
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 = BooleanOption(_("Include only living people"), True)
|
||||||
alive.set_help(_("Include only living people in the report"))
|
alive.set_help(_("Include only living people in the report"))
|
||||||
menu.add_option(category_name, "alive", alive)
|
menu.add_option(category_name, "alive", alive)
|
||||||
|
Loading…
Reference in New Issue
Block a user