pychecker fixes, minor bugs in image handing

svn: r540
This commit is contained in:
Don Allingham
2001-11-02 17:46:33 +00:00
parent 5b39f24e89
commit 1183e771f0
38 changed files with 390 additions and 390 deletions

View File

@@ -108,6 +108,14 @@ class IndividualPage:
cell = TableCellStyle()
self.doc.add_cell_style("NormalCell",cell)
cell = TableCellStyle()
cell.set_padding(0.2)
self.doc.add_cell_style("ImageCell",cell)
cell = TableCellStyle()
cell.set_padding(0.2)
self.doc.add_cell_style("NoteCell",cell)
name = person.getPrimaryName().getRegularName()
self.doc.set_title(_("Summary of %s") % name)
@@ -333,7 +341,7 @@ class IndividualPage:
self.doc.start_table("gallery","IndTable")
for obj in my_list:
self.doc.start_row()
self.doc.start_cell("NormalCell")
self.doc.start_cell("ImageCell")
self.doc.start_paragraph("Data")
src = obj.getReference().getPath()
base = os.path.basename(src)
@@ -344,7 +352,7 @@ class IndividualPage:
self.doc.end_paragraph()
self.doc.end_cell()
self.doc.start_cell("NormalCell")
self.doc.start_cell("NoteCell")
description = obj.getReference().getDescription()
if description != "":
self.doc.start_paragraph("PhotoDescription")