Diff for /versionedFile/versionedFile.py between versions 1.47 and 1.48

version 1.47, 2005/10/19 11:47:47 version 1.48, 2005/10/19 11:56:52
Line 515  class versionedFileObject(File): Line 515  class versionedFileObject(File):
   
           
   
     def download(self):      def download(self,REQUEST=None,RESPONSE=None):
         """download and lock"""          """download and lock"""
                   
         self.REQUEST.RESPONSE.setHeader("Content-Disposition","""attachement; filename=%s"""%self.getId())          self.REQUEST.RESPONSE.setHeader("Content-Disposition","""attachement; filename=%s"""%self.getId())
Line 525  class versionedFileObject(File): Line 525  class versionedFileObject(File):
         #self.REQUEST.RESPONSE.redirect(self.absolute_url())          #self.REQUEST.RESPONSE.redirect(self.absolute_url())
         #txt=urllib.urlopen(self.absolute_url()).read()          #txt=urllib.urlopen(self.absolute_url()).read()
         #self.REQUEST.RESPONSE.write(txt)          #self.REQUEST.RESPONSE.write(txt)
       try:
         self.REQUEST.RESPONSE.write(self.index_html())          self.REQUEST.RESPONSE.write(self.index_html())
                   except:
                     self.REQUEST.RESPONSE.write(self.index_html(REQUEST,RESPONSE))
   
         self.REQUEST.close()          self.REQUEST.close()
           

Removed from v.1.47  
changed lines
  Added in v.1.48


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>