1. Bingnan Duan
  2. CherryPy

Source

CherryPy / cherrypy / tutorial / tut09_files.py

Author Commit Message Date Builds
Robert Brewer
Bye bye, py2/3.
Robert Brewer
Some backports (mostly whitespace, really) from the python3 branch.
Robert Brewer
Fixing tutorials which did not run on command-line.
Robert Brewer
Switched the json_in tool to take advantage of the new body.processors.
Robert Brewer
More trunk test fixes, inlucding backport of [2282] from python3 to trunk.
Robert Brewer
Fix for #756 (Deprecate server.quickstart): * server.quickstart now does nothing but raise a warning. * Made 'root' argument to cherrypy.quickstart optional (to make tutorials easier, but it applies broadly). * Removed all calls to server.quickstart.
Robert Brewer
New pywebd module. Trunk is now "3.1alpha".
Robert Brewer
Fix for #547 (serve_file still uses contentType instead of content_type). Thanks, michele!
Robert Brewer
Changed server.start to server.quickstart, and server.start_all to server.start.
Sylvain Hellegouarch
All tutotials were missing an import os.path and could not run
Robert Brewer
Root and config are now isolated per app: 1. object_path is now called path_info, and there's a new request.script_name attribute. This should equal the mount point of the current application. 2. cherrypy.root is gone, use cherrypy.request.app.root for now instead. Perhaps cherrypy.root will reappear and point to that. 3. cherrypy.tree.mount_points has been replaced with cherrypy.tree.apps, a dict of the form {script_name: Application(…
Robert Brewer
Separated cherrypy.server (HTTP) from cherrypy.engine (app): 1. Most CP apps must now make both a call to cherrypy.server.start(server=None) and a call to cherrypy.engine.start(blocking=True). 2. The on_start_server_list and on_stop_server_list are now on_start_engine_list and on_stop_engine_list. 3. "start_with_callback" is now an attribute of Engine. So is "request". 4. Server.start now takes a single "server" arg, which can be a server instance, a st…
Robert Brewer
Removed a bunch of instances of the word "filter".
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Robert Brewer
Less-confusing text in tut09_files.py docstring.
Robert Brewer
Tutorial fixes, plus a bug in _cputil.getErrorPage.
Remi Delon
Using smaller PDF file for tutorials (to reduce the size of the tarball)
Robert Brewer
Added download method (serveFile demo) to tutorial 9.