version 1.42, 2005/08/15 09:48:35
|
version 1.47, 2005/10/19 11:47:47
|
Line 8 from AccessControl import getSecurityMan
|
Line 8 from AccessControl import getSecurityMan
|
from Products.PageTemplates.PageTemplate import PageTemplate |
from Products.PageTemplates.PageTemplate import PageTemplate |
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate |
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate |
from AccessControl import ClassSecurityInfo |
from AccessControl import ClassSecurityInfo |
|
try: |
from Products.ImageArchive.ImageArchive import manage_AddImageZogiLib |
from Products.ImageArchive.ImageArchive import manage_AddImageZogiLib |
|
except: |
|
print "no images" |
|
|
from threading import Thread |
from threading import Thread |
import shutil |
import shutil |
import tempfile |
import tempfile |
import os.path |
import os.path |
|
import urllib |
|
|
import time |
import time |
try: |
try: |
Line 520 class versionedFileObject(File):
|
Line 523 class versionedFileObject(File):
|
|
|
self.content_type="application/octet-stream" |
self.content_type="application/octet-stream" |
#self.REQUEST.RESPONSE.redirect(self.absolute_url()) |
#self.REQUEST.RESPONSE.redirect(self.absolute_url()) |
|
#txt=urllib.urlopen(self.absolute_url()).read() |
|
#self.REQUEST.RESPONSE.write(txt) |
self.REQUEST.RESPONSE.write(self.index_html()) |
self.REQUEST.RESPONSE.write(self.index_html()) |
#self.REQUEST.RESPONSE.write("bl") |
|
|
|
|
|
self.REQUEST.close() |
self.REQUEST.close() |
|
|
def downloadLocked(self): |
def downloadLocked(self): |