--- versionedFile/versionedFile.py 2005/10/18 15:45:02 1.46 +++ versionedFile/versionedFile.py 2005/10/19 11:47:47 1.47 @@ -519,14 +519,16 @@ class versionedFileObject(File): """download and lock""" self.REQUEST.RESPONSE.setHeader("Content-Disposition","""attachement; filename=%s"""%self.getId()) - self.REQUEST.RESPONSE.setHeader("Content-Type","application/octet-stream") + 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()) #txt=urllib.urlopen(self.absolute_url()).read() - #self.REQUEST.RESPONSE.write(txt) - #self.REQUEST.RESPONSE.write("bl") + #self.REQUEST.RESPONSE.write(txt) + self.REQUEST.RESPONSE.write(self.index_html()) + + + self.REQUEST.close() def downloadLocked(self): @@ -830,7 +832,7 @@ class versionedFile(Folder): """download and lock""" self.REQUEST.RESPONSE.setHeader("Content-Disposition","""attachement; filename=%s"""%self.getLastVersion().getId()) - self.REQUEST.RESPONSE.setHeader("Content-Type","application/octet-stream") + self.REQUEST.RESPONSE.setHeader("Content-Type","application/octet-stream") self.content_type="application/octet-stream" #self.REQUEST.RESPONSE.write("bl")