Changeset 723
- Timestamp:
- 10/07/05 03:14:17
- Files:
-
- trunk/cherrypy/test/test_tutorials.py (modified) (1 diff)
- trunk/cherrypy/tutorial/ReturnVsYield.pdf (deleted)
- trunk/cherrypy/tutorial/pdf_file.pdf (added)
- trunk/cherrypy/tutorial/tut09_files.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/test_tutorials.py
r718 r723 170 170 self.assertStatus("200 OK") 171 171 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) 174 174 175 175 if __name__ == "__main__": trunk/cherrypy/tutorial/tut09_files.py
r621 r723 46 46 47 47 def download(self): 48 path = os.path.join(absDir, " ReturnVsYield.pdf")48 path = os.path.join(absDir, "pdf_file.pdf") 49 49 return cptools.serveFile(path, "application/x-download", 50 50 "attachment", os.path.basename(path))

