summaryrefslogtreecommitdiff
path: root/cherrypy/tutorial/tut06_default_method.py
Commit message (Collapse)AuthorAgeFilesLines
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-081-4/+4
| | | | pre-commit run double-quote-string-fixer --all-files
* Finally fix E402 for tutorial/tut*.pySviatoslav Sydorenko2016-09-081-1/+2
|
* Refactor tutorial tests such that they're constructed more directly (and not ↵Jason R. Coombs2016-06-051-3/+0
| | | | by invoking a loader on the server itself). Remove test-specific code from the tutorials.
* Use expose decorator throughout the codebase.Jason R. Coombs2016-06-051-2/+2
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-121-1/+0
| | | | | --HG-- branch : autopep8
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-031-3/+3
| | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
* Bye bye, py2/3.Robert Brewer2011-07-021-0/+64
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-251-64/+0
| | | | goes in the py2 folder, and we can use a single setup.py to install either, depending on the version of Python that runs setup.py install.
* Fixing tutorials which did not run on command-line.Robert Brewer2010-01-011-5/+10
|
* Fix for #756 (Deprecate server.quickstart):Robert Brewer2008-01-121-5/+2
| | | | | | * 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.
* New pywebd module. Trunk is now "3.1alpha".Robert Brewer2007-03-051-0/+1
|
* Changed server.start to server.quickstart, and server.start_all to server.start.Robert Brewer2006-08-051-1/+1
|
* All tutotials were missing an import os.path and could not runSylvain Hellegouarch2006-05-221-0/+1
|
* Root and config are now isolated per app:Robert Brewer2006-05-071-2/+2
| | | | | | | | | | | 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(root, conf)}. 4. The [global] config namespace is now contained in a flat cherrypy.config.globalconf dict. 5. Got rid of handling favicon.ico and the "*" URI (although they may return someday). 6. Upshot is that e.g. test_objectmapping.py takes 1/3 the time as CP 2.2. 7. Moved request body size check into _cprequest from _cpwsgi. 8. Fixed lib/wsgiapp and made a tool for it.
* Separated cherrypy.server (HTTP) from cherrypy.engine (app):Robert Brewer2006-05-041-0/+1
| | | | | | | | 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 string (fully qualified class name), or None (to start the default WSGI server). 5. Server still has a wait method, but otherwise does no blocking.
* Tutorial fixes, plus a bug in _cputil.getErrorPage.Robert Brewer2005-10-081-1/+1
|
* Implements ticket #195.Robert Brewer2005-06-251-5/+6
| | | | | | | | 1. cpg module removed, all content moved into cherrypy.__init__. 2. Removed some circular imports in sessionfilter by moving sessionfilter.sessionfilter and _sessionTypes into sessionfilter.__init__. 3. renamed _cpconfig to "config". 4. renamed _cpserver to "server". 5. renamed cperror to _cperror; cherrypy.__init__ now imports * from _cperror.
* Re-numbered tutorials (after removing aspect tutorial) and updated test suiteRemi Delon2005-06-201-0/+58