Remi Delon  committed aafd760

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

  • Participants
  • Parent commits 83a5ac2
  • Branches default

Comments (0)

Files changed (4)

File cherrypy/test/

         self.assertStatus("200 OK")
         self.assertHeader("Content-Type", "application/x-download")
-        self.assertHeader("Content-Disposition", "attachment; filename=ReturnVsYield.pdf")
-        self.assertEqual(len(self.body), 325256)
+        self.assertHeader("Content-Disposition", "attachment; filename=pdf_file.pdf")
+        self.assertEqual(len(self.body), 85698)
 if __name__ == "__main__":

File cherrypy/tutorial/ReturnVsYield.pdf

Binary file removed.

File cherrypy/tutorial/pdf_file.pdf

Binary file added.

File cherrypy/tutorial/ = True
     def download(self):
-        path = os.path.join(absDir, "ReturnVsYield.pdf")
+        path = os.path.join(absDir, "pdf_file.pdf")
         return cptools.serveFile(path, "application/x-download",
                                  "attachment", os.path.basename(path)) = True