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

This commit is contained in:
Paul Franklin 2014-07-26 09:52:31 -07:00
parent 23b0025c1c
commit f9ecc2ebef

View File

@ -45,10 +45,10 @@ _ = glocale.translation.gettext
from gramps.gen.errors import ReportError from gramps.gen.errors import ReportError
from gramps.gen.lib import EventType, FamilyRelType, Person, NoteType from gramps.gen.lib import EventType, FamilyRelType, Person, NoteType
from gramps.gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle, from gramps.gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
FONT_SANS_SERIF, FONT_SERIF, FONT_SANS_SERIF, FONT_SERIF,
INDEX_TYPE_TOC, PARA_ALIGN_CENTER) INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
from gramps.gen.plug.menu import BooleanOption, NumberOption, PersonOption from gramps.gen.plug.menu import BooleanOption, NumberOption, PersonOption
from gramps.gen.plug.report import ( Report, Bibliography ) from gramps.gen.plug.report import Report, Bibliography
from gramps.gen.plug.report import endnotes from gramps.gen.plug.report import endnotes
from gramps.gen.plug.report import utils as ReportUtils from gramps.gen.plug.report import utils as ReportUtils
from gramps.gen.plug.report import MenuReportOptions from gramps.gen.plug.report import MenuReportOptions
@ -136,7 +136,7 @@ class DetAncestorReport(Report):
self.inc_srcnotes = get_value('incsrcnotes') self.inc_srcnotes = get_value('incsrcnotes')
self.inc_attrs = get_value('incattrs') self.inc_attrs = get_value('incattrs')
pid = get_value('pid') pid = get_value('pid')
self.center_person = database.get_person_from_gramps_id(pid) self.center_person = self.db.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 )