pychecker fixes, minor bugs in image handing
svn: r540
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user