Updated to allow photo positioning

svn: r567
This commit is contained in:
Don Allingham
2001-11-13 23:34:29 +00:00
parent 188941bc1f
commit fa1d21eca1
12 changed files with 111 additions and 114 deletions

View File

@@ -222,7 +222,7 @@ class IndivSummary:
if object.getMimeType()[0:5] == "image":
file = object.getPath()
self.d.start_paragraph("Normal")
self.d.add_photo(file,4.0,4.0)
self.d.add_photo(file,"row",4.0,4.0)
self.d.end_paragraph()
self.d.start_table("one","IndTable")

View File

@@ -257,7 +257,7 @@ class IndividualPage:
if object.getMimeType()[0:5] == "image":
file = object.getPath()
self.doc.start_paragraph("Data")
self.doc.add_photo(file,4.0,4.0)
self.doc.add_photo(file,"row",4.0,4.0)
self.doc.end_paragraph()
# Start the first table, which consists of basic information, including
@@ -346,7 +346,7 @@ class IndividualPage:
src = obj.getReference().getPath()
base = os.path.basename(src)
self.doc.start_link("images/%s" % base)
self.doc.add_photo(src,1.5,1.5)
self.doc.add_photo(src,"row",1.5,1.5)
shutil.copy(src,"%s/images/%s" % (self.dir,base))
self.doc.end_link()