version 1.193, 2004/11/29 21:55:29
|
version 1.194, 2004/11/30 11:59:42
|
Line 9 class ECHO_externalLink contains informa
|
Line 9 class ECHO_externalLink contains informa
|
|
|
|
|
""" |
""" |
|
try: |
from reportlab.pdfgen import canvas |
from reportlab.pdfgen import canvas |
from reportlab.lib.pagesizes import A4 |
from reportlab.lib.pagesizes import A4 |
|
except: |
|
print "PDF generation will not work" |
|
|
|
|
import string |
import string |
Line 309 class ECHO_resource(Folder,Persistent,EC
|
Line 311 class ECHO_resource(Folder,Persistent,EC
|
pages=int(parameter.getAttribute('value')) |
pages=int(parameter.getAttribute('value')) |
break |
break |
|
|
|
|
tempdir="/tmp/archivesImageServer" |
tempdir="/tmp/archivesImageServer" |
if not os.path.exists(tempdir): |
if not os.path.exists(tempdir): |
os.mkdir(tempdir) |
os.mkdir(tempdir) |
Line 323 class ECHO_resource(Folder,Persistent,EC
|
Line 326 class ECHO_resource(Folder,Persistent,EC
|
|
|
|
|
|
|
|
|
if RESPONSE: |
if RESPONSE: |
RESPONSE.setHeader("Content-Type","text/html") |
RESPONSE.setHeader("Content-Type","text/html") |
RESPONSE.write("<h1>I am creating the pdf</h1>") |
RESPONSE.write("<h1>I am creating the pdf</h1>") |