diff --git a/gramps/plugins/textreport/birthdayreport.py b/gramps/plugins/textreport/birthdayreport.py index 6442c2b12..1d666e7d5 100644 --- a/gramps/plugins/textreport/birthdayreport.py +++ b/gramps/plugins/textreport/birthdayreport.py @@ -4,7 +4,7 @@ # Copyright (C) 2008-2009 Brian G. Matherly # Copyright (C) 2009 Rob G. Healey # 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)