--- versionedFile/versionedFile.py 2005/08/15 09:48:35 1.42 +++ versionedFile/versionedFile.py 2005/10/18 15:45:02 1.46 @@ -8,13 +8,16 @@ from AccessControl import getSecurityMan from Products.PageTemplates.PageTemplate import PageTemplate from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate from AccessControl import ClassSecurityInfo -from Products.ImageArchive.ImageArchive import manage_AddImageZogiLib +try: + from Products.ImageArchive.ImageArchive import manage_AddImageZogiLib +except: + print "no images" from threading import Thread import shutil import tempfile import os.path - +import urllib import time try: @@ -519,8 +522,10 @@ class versionedFileObject(File): self.REQUEST.RESPONSE.setHeader("Content-Type","application/octet-stream") self.content_type="application/octet-stream" - #self.REQUEST.RESPONSE.redirect(self.absolute_url()) - self.REQUEST.RESPONSE.write(self.index_html()) + self.REQUEST.RESPONSE.redirect(self.absolute_url()) + #self.REQUEST.RESPONSE.write(self.index_html()) + #txt=urllib.urlopen(self.absolute_url()).read() + #self.REQUEST.RESPONSE.write(txt) #self.REQUEST.RESPONSE.write("bl") self.REQUEST.close()