svn: r6824
This commit is contained in:
Alex Roitman
2006-05-31 02:41:46 +00:00
parent 2e9af64722
commit 99acb9d02f
10 changed files with 50 additions and 23 deletions

View File

@@ -35,7 +35,9 @@ from gettext import gettext as _
# gramps modules
#
#------------------------------------------------------------------------
from PluginUtils import Report, ReportUtils, ReportOptions, register_report
from PluginUtils import register_report
from ReportBase import Report, ReportUtils, ReportOptions, \
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
import BaseDoc
import Errors
import NameDisplay
@@ -53,7 +55,7 @@ def log2(val):
# AncestorReport
#
#------------------------------------------------------------------------
class AncestorReport(Report.Report):
class AncestorReport(Report):
def __init__(self,database,person,options_class):
"""
@@ -73,7 +75,7 @@ class AncestorReport(Report.Report):
"""
Report.Report.__init__(self,database,person,options_class)
Report.__init__(self,database,person,options_class)
self.map = {}
(self.max_generations,self.pgbrk) \
@@ -140,14 +142,14 @@ class AncestorReport(Report.Report):
#
#
#------------------------------------------------------------------------
class AncestorOptions(ReportOptions.ReportOptions):
class AncestorOptions(ReportOptions):
"""
Defines options and provides handling interface.
"""
def __init__(self,name,person_id=None):
ReportOptions.ReportOptions.__init__(self,name,person_id)
ReportOptions.__init__(self,name,person_id)
def enable_options(self):
# Semi-common options that should be enabled for this report
@@ -194,10 +196,10 @@ class AncestorOptions(ReportOptions.ReportOptions):
#------------------------------------------------------------------------
register_report(
name = 'ancestor_report',
category = Report.CATEGORY_TEXT,
category = CATEGORY_TEXT,
report_class = AncestorReport,
options_class = AncestorOptions,
modes = Report.MODE_GUI | Report.MODE_BKI | Report.MODE_CLI,
modes = MODE_GUI | MODE_BKI | MODE_CLI,
translated_name = _("Ahnentafel Report"),
status=(_("Stable")),
description= _("Produces a textual ancestral report"),