version 1.70, 2007/04/03 13:18:47
|
version 1.71, 2007/09/10 19:27:55
|
Line 73 class generateDownloadZip:
|
Line 73 class generateDownloadZip:
|
|
|
savePath=os.path.join(tmpPath,lastV.title) |
savePath=os.path.join(tmpPath,lastV.title) |
fh=file(savePath,"w") |
fh=file(savePath,"w") |
fh.write(lastV.data) |
logging.debug("writing file %1 data in %s"%(lastV.title,savePath)) |
|
# loop to get OFS.Image.File data |
|
data=lastV.data |
|
if isinstance(data, str): |
|
fh.write(data) |
|
else: |
|
while data is not None: |
|
fh.write(data.data) |
|
data=data.next |
|
|
fh.close() |
fh.close() |
|
|
self.response+="<h3>2. step: creating the downloadable file</h3>" |
self.response+="<h3>2. step: creating the downloadable file</h3>" |