Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 723

Show
Ignore:
Timestamp:
10/07/05 03:14:17
Author:
rdelon
Message:

Using smaller PDF file for tutorials (to reduce the size of the tarball)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test_tutorials.py

    r718 r723  
    170170        self.assertStatus("200 OK") 
    171171        self.assertHeader("Content-Type", "application/x-download") 
    172         self.assertHeader("Content-Disposition", "attachment; filename=ReturnVsYield.pdf") 
    173         self.assertEqual(len(self.body), 325256
     172        self.assertHeader("Content-Disposition", "attachment; filename=pdf_file.pdf") 
     173        self.assertEqual(len(self.body), 85698
    174174 
    175175if __name__ == "__main__": 
  • trunk/cherrypy/tutorial/tut09_files.py

    r621 r723  
    4646     
    4747    def download(self): 
    48         path = os.path.join(absDir, "ReturnVsYield.pdf") 
     48        path = os.path.join(absDir, "pdf_file.pdf") 
    4949        return cptools.serveFile(path, "application/x-download", 
    5050                                 "attachment", os.path.basename(path)) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets