From 3cf25bceb7df2a38144152aebdc81b112aa32aa1 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Sun, 23 Dec 2001 22:58:19 +0000 Subject: [PATCH] Tweak the report classes init calls. svn: r659 --- gramps/src/Report.py | 6 +++--- gramps/src/plugins/AncestorChart.py | 2 +- gramps/src/plugins/AncestorReport.py | 2 +- gramps/src/plugins/DescendReport.py | 2 +- gramps/src/plugins/DetAncestralReport.py | 2 +- gramps/src/plugins/FamilyGroup.py | 2 +- gramps/src/plugins/IndivSummary.py | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gramps/src/Report.py b/gramps/src/Report.py index 391db1e39..ec95e1f29 100644 --- a/gramps/src/Report.py +++ b/gramps/src/Report.py @@ -657,7 +657,7 @@ class ReportDialog: # #------------------------------------------------------------------------ class TextReportDialog(ReportDialog): - def __init__(self,database,person,filename): + def __init__(self,database,person,filename="basicreport.glade"): """Initialize a dialog to request that the user select options for a basic text report. See the ReportDialog class for more information.""" @@ -715,11 +715,11 @@ class TextReportDialog(ReportDialog): # #------------------------------------------------------------------------ class DrawReportDialog(ReportDialog): - def __init__(self,database,person,filename): + def __init__(self,database,person,filename="basicreport.glade"): """Initialize a dialog to request that the user select options for a basic drawing report. See the ReportDialog class for more information.""" - ReportDialog.__init__self,database,person,filename() + ReportDialog.__init__(self,database,person,filename) #------------------------------------------------------------------------ # diff --git a/gramps/src/plugins/AncestorChart.py b/gramps/src/plugins/AncestorChart.py index 89ac232b6..1cbb76c76 100644 --- a/gramps/src/plugins/AncestorChart.py +++ b/gramps/src/plugins/AncestorChart.py @@ -246,7 +246,7 @@ class AncestorChart: #------------------------------------------------------------------------ class AncestorChartDialog(DrawReportDialog): def __init__(self,database,person): - ReportDialog.__init__(self,database,person) + DrawReportDialog.__init__(self,database,person) #------------------------------------------------------------------------ # diff --git a/gramps/src/plugins/AncestorReport.py b/gramps/src/plugins/AncestorReport.py index e721a9798..044a5d9a8 100644 --- a/gramps/src/plugins/AncestorReport.py +++ b/gramps/src/plugins/AncestorReport.py @@ -226,7 +226,7 @@ class AncestorReport(Report): #------------------------------------------------------------------------ class AncestorReportDialog(TextReportDialog): def __init__(self,database,person): - ReportDialog.__init__(self,database,person) + TextReportDialog.__init__(self,database,person) #------------------------------------------------------------------------ # diff --git a/gramps/src/plugins/DescendReport.py b/gramps/src/plugins/DescendReport.py index 6c1706655..603e548a8 100644 --- a/gramps/src/plugins/DescendReport.py +++ b/gramps/src/plugins/DescendReport.py @@ -131,7 +131,7 @@ class DescendantReport: #------------------------------------------------------------------------ class DescendantReportDialog(TextReportDialog): def __init__(self,person,database): - ReportDialog.__init__(self,database,person) + TextReportDialog.__init__(self,database,person) #------------------------------------------------------------------------ # diff --git a/gramps/src/plugins/DetAncestralReport.py b/gramps/src/plugins/DetAncestralReport.py index ffced7bb1..b952fe1b6 100644 --- a/gramps/src/plugins/DetAncestralReport.py +++ b/gramps/src/plugins/DetAncestralReport.py @@ -442,7 +442,7 @@ class DetAncestorReport(Report): #------------------------------------------------------------------------ class DetAncestorReportDialog(TextReportDialog): def __init__(self,database,person): - ReportDialog.__init__(self,database,person) + TextReportDialog.__init__(self,database,person) #------------------------------------------------------------------------ # diff --git a/gramps/src/plugins/FamilyGroup.py b/gramps/src/plugins/FamilyGroup.py index 258ca1542..830821f6b 100644 --- a/gramps/src/plugins/FamilyGroup.py +++ b/gramps/src/plugins/FamilyGroup.py @@ -326,7 +326,7 @@ class FamilyGroup: #------------------------------------------------------------------------ class FamilyGroupDialog(TextReportDialog): def __init__(self,database,person): - ReportDialog.__init__(self,database,person) + TextReportDialog.__init__(self,database,person) #------------------------------------------------------------------------ # diff --git a/gramps/src/plugins/IndivSummary.py b/gramps/src/plugins/IndivSummary.py index 9850ce8b3..56005c504 100644 --- a/gramps/src/plugins/IndivSummary.py +++ b/gramps/src/plugins/IndivSummary.py @@ -318,7 +318,7 @@ class IndivSummary: #------------------------------------------------------------------------ class IndivSummaryDialog(TextReportDialog): def __init__(self,database,person): - ReportDialog.__init__(self,database,person) + TextReportDialog.__init__(self,database,person) #------------------------------------------------------------------------ #