Bug fixes from pychecker

svn: r1333
This commit is contained in:
Don Allingham
2003-03-08 05:59:20 +00:00
parent f51271f0be
commit a72b6df23c
20 changed files with 264 additions and 152 deletions

View File

@@ -245,6 +245,7 @@ class AncestorChartDialog(Report.DrawReportDialog):
f.set_type_face(TextDoc.FONT_SANS_SERIF)
p = TextDoc.ParagraphStyle()
p.set_font(f)
p.set_description(_('The basic style used for the text display.'))
self.default_style.add_style("Normal",p)
def make_report(self):

View File

@@ -245,6 +245,7 @@ class AncestorReportDialog(Report.TextReportDialog):
para.set_font(font)
para.set_header_level(1)
para.set(pad=0.5)
para.set_description(_('The style used for the title of the page.'))
self.default_style.add_style("Title",para)
font = TextDoc.FontStyle()
@@ -253,10 +254,12 @@ class AncestorReportDialog(Report.TextReportDialog):
para.set_font(font)
para.set_header_level(2)
para.set(pad=0.5)
para.set_description(_('The style used for the generation header.'))
self.default_style.add_style("Generation",para)
para = TextDoc.ParagraphStyle()
para.set(first_indent=-1.0,lmargin=1.0,pad=0.25)
para.set_description(_('The basic style used for the text display.'))
self.default_style.add_style("Entry",para)
def make_report(self):

View File

@@ -332,6 +332,7 @@ class DescendantReportDialog(Report.DrawReportDialog):
f.set_type_face(TextDoc.FONT_SANS_SERIF)
p = TextDoc.ParagraphStyle()
p.set_font(f)
p.set_description(_('The basic style used for the text display.'))
self.default_style.add_style("Normal",p)
def make_report(self):

View File

@@ -145,6 +145,7 @@ class DescendantReportDialog(Report.TextReportDialog):
p = TextDoc.ParagraphStyle()
p.set_header_level(1)
p.set_font(f)
p.set_description(_("The style used for the title of the page."))
self.default_style.add_style("Title",p)
f = TextDoc.FontStyle()
@@ -152,6 +153,7 @@ class DescendantReportDialog(Report.TextReportDialog):
p = TextDoc.ParagraphStyle()
p.set_font(f)
p.set_left_margin(max(10.0,float(i-1)))
p.set_description(_("The style used for the level %d display.") % i)
self.default_style.add_style("Level%d" % i,p)
def make_report(self):

View File

@@ -405,6 +405,7 @@ class FamilyGroupDialog(Report.TextReportDialog):
font.set_bold(1)
para = TextDoc.ParagraphStyle()
para.set_font(font)
para.set_description(_("The style used for the title of the page."))
self.default_style.add_style('Title',para)
font = TextDoc.FontStyle()
@@ -413,6 +414,7 @@ class FamilyGroupDialog(Report.TextReportDialog):
font.set_bold(0)
para = TextDoc.ParagraphStyle()
para.set_font(font)
para.set_description(_('The basic style used for the text display.'))
self.default_style.add_style('Normal',para)
font = TextDoc.FontStyle()
@@ -421,6 +423,7 @@ class FamilyGroupDialog(Report.TextReportDialog):
font.set_bold(1)
para = TextDoc.ParagraphStyle()
para.set_font(font)
para.set_description(_('The style used for the text related to the children.'))
self.default_style.add_style('ChildText',para)
font = TextDoc.FontStyle()
@@ -429,6 +432,7 @@ class FamilyGroupDialog(Report.TextReportDialog):
font.set_bold(1)
para = TextDoc.ParagraphStyle()
para.set_font(font)
para.set_description(_("The style used for the parent's name"))
self.default_style.add_style('ParentName',para)
#------------------------------------------------------------------------

View File

@@ -335,7 +335,7 @@ class IndivComplete:
self.d.end_cell()
def write_report(self):
ind_list = self.filter.apply(seld.database,self.database.getPersonMap().values())
ind_list = self.filter.apply(self.database,self.database.getPersonMap().values())
count = 0
for self.person in ind_list:
self.write_person(count)
@@ -499,6 +499,7 @@ class IndivSummaryDialog(Report.TextReportDialog):
p = TextDoc.ParagraphStyle()
p.set_alignment(TextDoc.PARA_ALIGN_CENTER)
p.set_font(font)
p.set_description(_("The style used for the title of the page."))
self.default_style.add_style("Title",p)
font = TextDoc.FontStyle()
@@ -508,6 +509,7 @@ class IndivSummaryDialog(Report.TextReportDialog):
font.set_italic(1)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used category labels."))
self.default_style.add_style("TableTitle",p)
font = TextDoc.FontStyle()
@@ -516,12 +518,14 @@ class IndivSummaryDialog(Report.TextReportDialog):
font.set_size(12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the spouse's name."))
self.default_style.add_style("Spouse",p)
font = TextDoc.FontStyle()
font.set_size(12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
para.set_description(_('The basic style used for the text display.'))
self.default_style.add_style("Normal",p)
def setup_report_options(self):

View File

@@ -342,6 +342,7 @@ class IndivSummaryDialog(Report.TextReportDialog):
p = TextDoc.ParagraphStyle()
p.set_alignment(TextDoc.PARA_ALIGN_CENTER)
p.set_font(font)
p.set_description(_("The style used for the title of the page."))
self.default_style.add_style("Title",p)
font = TextDoc.FontStyle()
@@ -351,6 +352,7 @@ class IndivSummaryDialog(Report.TextReportDialog):
font.set_italic(1)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used category labels."))
self.default_style.add_style("TableTitle",p)
font = TextDoc.FontStyle()
@@ -359,12 +361,14 @@ class IndivSummaryDialog(Report.TextReportDialog):
font.set_size(12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the spouse's name."))
self.default_style.add_style("Spouse",p)
font = TextDoc.FontStyle()
font.set_size(12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
para.set_description(_('The basic style used for the text display.'))
self.default_style.add_style("Normal",p)
def setup_report_options(self):

View File

@@ -13,6 +13,10 @@
# PARTICULAR PURPOSE.
@SET_MAKE@
# This is the src/plugins level Makefile for Gramps
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
SHELL = @SHELL@
srcdir = @srcdir@
@@ -105,17 +109,60 @@ ZIP = @ZIP@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@
pkgpyexecdir = @pkgpyexecdir@/plugins
pkgpythondir = @pkgpythondir@/plugins
pyexecdir = @pyexecdir@
pythondir = @pythondir@
# This is the src/plugins level Makefile for Gramps
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all .py files individually
pkgpython_PYTHON := ${wildcard *.py}
pkgpython_PYTHON = \
AncestorChart.py\
AncestorReport.py\
ChangeTypes.py\
Check.py\
count_anc.py\
Desbrowser.py\
DescendReport.py\
DesGraph.py\
DetAncestralReport.py\
DetDescendantReport.py\
EventCmp.py\
FamilyGroup.py\
FilterEditor.py\
GraphViz.py\
IndivComplete.py\
IndivSummary.py\
Merge.py\
PatchNames.py\
ReadGedcom.py\
ReadNative.py\
RelCalc.py\
ReorderIds.py\
soundgen.py\
Summary.py\
TimeLine.py\
Verify.py\
WebPage.py\
WriteGedcom.py\
WritePkg.py
GLADEFILES = \
changetype.glade\
desbrowse.glade\
eventcmp.glade\
gedcomexport.glade\
gedcomimport.glade\
merge.glade\
pafexport.glade\
patchnames.glade\
pkgexport.glade\
readgedcom.glade\
relcalc.glade\
soundex.glade\
summary.glade\
verify.glade
GLADEFILES := ${wildcard *.glade}
pkgdata_DATA = ${GLADEFILES}
dist_pkgdata_DATA = ${pkgdata_DATA}

View File

@@ -370,6 +370,7 @@ class TimeLineDialog(Report.DrawReportDialog):
f.set_type_face(TextDoc.FONT_SANS_SERIF)
p = TextDoc.ParagraphStyle()
p.set_font(f)
para.set_description(_("The style used for the person's name."))
self.default_style.add_style("Name",p)
f = TextDoc.FontStyle()
@@ -377,6 +378,7 @@ class TimeLineDialog(Report.DrawReportDialog):
f.set_type_face(TextDoc.FONT_SANS_SERIF)
p = TextDoc.ParagraphStyle()
p.set_font(f)
para.set_description(_("The style used for the year labels."))
self.default_style.add_style("Label",p)
f = TextDoc.FontStyle()
@@ -384,6 +386,7 @@ class TimeLineDialog(Report.DrawReportDialog):
f.set_type_face(TextDoc.FONT_SANS_SERIF)
p = TextDoc.ParagraphStyle()
p.set_font(f)
p.set_description(_("The style used for the title of the page."))
self.default_style.add_style("Title",p)
def make_report(self):

View File

@@ -959,7 +959,6 @@ class WebReportDialog(Report.ReportDialog):
p = TextDoc.ParagraphStyle()
p.set(align=TextDoc.PARA_ALIGN_CENTER,font=font)
p.set_description(_("The style used for the title of the page."))
self.default_style.add_style("Title",p)
font = TextDoc.FontStyle()