From 66bc5b5807e6b97ab1e7c7bd00369f729a1a79b6 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 23 Dec 2004 18:00:21 +0000 Subject: [PATCH] Update svn: r3835 --- gramps2/src/ReportOptions.py | 40 ++++++++++++++++++++++++ gramps2/src/plugins/BookReport.py | 2 +- gramps2/src/plugins/FtmStyleAncestors.py | 6 ++-- gramps2/src/plugins/IndivSummary.py | 2 +- 4 files changed, 45 insertions(+), 5 deletions(-) diff --git a/gramps2/src/ReportOptions.py b/gramps2/src/ReportOptions.py index cdcf43f72..7c99d68aa 100644 --- a/gramps2/src/ReportOptions.py +++ b/gramps2/src/ReportOptions.py @@ -753,25 +753,65 @@ class ReportOptions: pass def get_document(self): + """ + Return document instance. + + This method MUST NOT be overridden by subclasses. + """ return self.handler.doc def set_document(self,val): + """ + Set document to a given instance. + + This method MUST NOT be overridden by subclasses. + """ self.handler.doc = val def get_output(self): + """ + Return document output destination. + + This method MUST NOT be overridden by subclasses. + """ return self.handler.output def set_output(self,val): + """ + Set output destination to a given string. + + This method MUST NOT be overridden by subclasses. + """ self.handler.output = val def get_newpage(self): + """ + Return value of whether or not insert new page before the report. + + This method MUST NOT be overridden by subclasses. + """ return self.handler.newpage def set_newpage(self,val): + """ + Set newpage to a given value. + + This method MUST NOT be overridden by subclasses. + """ self.handler.newpage = val def get_report_generations(self): + """ + Return (max_generations,page_breaks) tuple. + + This method MUST NOT be overridden by subclasses. + """ return self.handler.get_report_generations() def get_filter_number(self): + """ + Return number of a filter to use. + + This method MUST NOT be overridden by subclasses. + """ return self.handler.get_filter_number() diff --git a/gramps2/src/plugins/BookReport.py b/gramps2/src/plugins/BookReport.py index d4fa4b71a..6c3dff43c 100644 --- a/gramps2/src/plugins/BookReport.py +++ b/gramps2/src/plugins/BookReport.py @@ -1013,7 +1013,7 @@ class BookReportDialog(Report.ReportDialog): newpage = 0 for item in self.book.get_item_list(): item.option_class.set_document(self.doc) - item.option_class.set_newpage(newpage) + item.option_class.set_newpage(newpage) report_class = item.get_write_item() obj = Report.write_book_item(self.database,self.person, report_class,item.option_class) diff --git a/gramps2/src/plugins/FtmStyleAncestors.py b/gramps2/src/plugins/FtmStyleAncestors.py index e69bb6c63..7ef57ce2e 100644 --- a/gramps2/src/plugins/FtmStyleAncestors.py +++ b/gramps2/src/plugins/FtmStyleAncestors.py @@ -547,7 +547,7 @@ class FtmAncestorReport(Report.Report): return self.doc.start_paragraph('FTA-SubEntry') self.doc.write_text(_('Notes for %(person)s:') % { - 'person' : person.get_primary_name().get_regular_name()} ) + 'person' : person.get_primary_name().get_regular_name()} ) self.doc.end_paragraph() format = person.get_note_format() self.doc.write_note(note,format,'FTA-Details') @@ -560,7 +560,7 @@ class FtmAncestorReport(Report.Report): if first: self.doc.start_paragraph('FTA-SubEntry') self.doc.write_text(_('More about %(person_name)s:') % { - 'person_name' : person.get_primary_name().get_regular_name() }) + 'person_name' : person.get_primary_name().get_regular_name() }) self.doc.end_paragraph() first = 0 self.doc.start_paragraph('FTA-Details') @@ -586,7 +586,7 @@ class FtmAncestorReport(Report.Report): self.doc.start_paragraph('FTA-SubEntry') name = person.get_primary_name().get_regular_name() self.doc.write_text(_('More about %(person_name)s:') % { - 'person_name' : name }) + 'person_name' : name }) self.doc.end_paragraph() first = 0 diff --git a/gramps2/src/plugins/IndivSummary.py b/gramps2/src/plugins/IndivSummary.py index 1167487cd..d42d61535 100644 --- a/gramps2/src/plugins/IndivSummary.py +++ b/gramps2/src/plugins/IndivSummary.py @@ -118,7 +118,7 @@ class IndivSummary(Report.Report): self.d.add_cell_style("IVS-NormalCell",cell) cell = BaseDoc.TableCellStyle() - cell.set_longlist(1) + cell.set_longlist(1) self.d.add_cell_style("IVS-ListCell",cell) def end(self):