4011: "reports" should have a "no private information" button
This commit is contained in:
parent
7626068792
commit
8159de4f49
@ -4,7 +4,7 @@
|
|||||||
# Copyright (C) 2003-2006 Donald N. Allingham
|
# Copyright (C) 2003-2006 Donald N. Allingham
|
||||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||||
# Copyright (C) 2010 Jakim Friant
|
# Copyright (C) 2010 Jakim Friant
|
||||||
# Copyright (C) 2012-2013 Paul Franklin
|
# Copyright (C) 2012-2014 Paul Franklin
|
||||||
# Copyright (C) 2012 Nicolas Adenis-Lamarre
|
# Copyright (C) 2012 Nicolas Adenis-Lamarre
|
||||||
# Copyright (C) 2012 Benny Malengier
|
# Copyright (C) 2012 Benny Malengier
|
||||||
#
|
#
|
||||||
@ -166,9 +166,15 @@ class FanChart(Report):
|
|||||||
radial - Print radial texts roundabout or as upright as possible.
|
radial - Print radial texts roundabout or as upright as possible.
|
||||||
draw_empty - draw background when there is no information
|
draw_empty - draw background when there is no information
|
||||||
same_style - use the same style for all generation
|
same_style - use the same style for all generation
|
||||||
|
incl_private - Whether to include private data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Report.__init__(self, database, options, user)
|
||||||
|
|
||||||
menu = options.menu
|
menu = options.menu
|
||||||
|
|
||||||
|
stdoptions.run_private_data_option(self, menu)
|
||||||
|
|
||||||
self.max_generations = menu.get_option_by_name('maxgen').get_value()
|
self.max_generations = menu.get_option_by_name('maxgen').get_value()
|
||||||
self.circle = menu.get_option_by_name('circle').get_value()
|
self.circle = menu.get_option_by_name('circle').get_value()
|
||||||
self.background = menu.get_option_by_name('background').get_value()
|
self.background = menu.get_option_by_name('background').get_value()
|
||||||
@ -176,7 +182,7 @@ class FanChart(Report):
|
|||||||
pid = menu.get_option_by_name('pid').get_value()
|
pid = menu.get_option_by_name('pid').get_value()
|
||||||
self.draw_empty = menu.get_option_by_name('draw_empty').get_value()
|
self.draw_empty = menu.get_option_by_name('draw_empty').get_value()
|
||||||
self.same_style = menu.get_option_by_name('same_style').get_value()
|
self.same_style = menu.get_option_by_name('same_style').get_value()
|
||||||
self.center_person = database.get_person_from_gramps_id(pid)
|
self.center_person = self.database.get_person_from_gramps_id(pid)
|
||||||
if (self.center_person == None) :
|
if (self.center_person == None) :
|
||||||
raise ReportError(_("Person %s is not in the Database") % pid )
|
raise ReportError(_("Person %s is not in the Database") % pid )
|
||||||
|
|
||||||
@ -188,8 +194,6 @@ class FanChart(Report):
|
|||||||
|
|
||||||
self.calendar = 0
|
self.calendar = 0
|
||||||
|
|
||||||
Report.__init__(self, database, options, user)
|
|
||||||
|
|
||||||
self.height = 0
|
self.height = 0
|
||||||
self.map = [None] * 2**self.max_generations
|
self.map = [None] * 2**self.max_generations
|
||||||
self.text = {}
|
self.text = {}
|
||||||
@ -686,6 +690,8 @@ class FanChartOptions(MenuReportOptions):
|
|||||||
"for each generation in the style editor"))
|
"for each generation in the style editor"))
|
||||||
menu.add_option(category_name, "same_style", same_style)
|
menu.add_option(category_name, "same_style", same_style)
|
||||||
|
|
||||||
|
stdoptions.add_private_data_option(menu, category_name)
|
||||||
|
|
||||||
stdoptions.add_localization_option(menu, category_name)
|
stdoptions.add_localization_option(menu, category_name)
|
||||||
|
|
||||||
def make_default_style(self,default_style):
|
def make_default_style(self,default_style):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user