summaryrefslogtreecommitdiff
path: root/cherrypy/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* Merge PR #1933Sviatoslav Sydorenko2022-02-011-0/+0
|\
| * Replace the pdf with the one compiled by pdflatexKrystian Rosiński2021-09-131-0/+0
| |
* | Replace cherrypy.org to cherrypy.devManeesh Babu M2021-09-111-2/+2
|/
* Correct heading length.Jason R. Coombs2018-08-141-1/+1
|
* PEP8fy codebase: eliminated E305 flake8 errorSviatoslav Sydorenko2017-03-111-0/+1
|
* Fix formatting in tutorial READMESviatoslav Sydorenko2017-01-071-9/+10
|
* Use double colon in tutorial READMESviatoslav Sydorenko2017-01-071-1/+1
|
* Convert tutorial's README into rstSviatoslav Sydorenko2017-01-071-0/+0
|
* Cut off all \n at the end of filesSviatoslav Sydorenko2016-09-081-1/+0
| | | | pre-commit run end-of-file-fixer --all-files
* Convert all strings to conform single-quoted styleSviatoslav Sydorenko2016-09-086-16/+16
| | | | pre-commit run double-quote-string-fixer --all-files
* Finally fix E402 for tutorial/tut*.pySviatoslav Sydorenko2016-09-0810-14/+24
|
* Fix trailing CR ( ) to be normal linux LFSviatoslav Sydorenko2016-09-081-16/+16
|
* Refactor tutorial tests such that they're constructed more directly (and not ↵Jason R. Coombs2016-06-0510-30/+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-0510-25/+24
|
* Removed old sqlobject tutorialGustavo Picon2014-01-121-167/+0
|
* More PEP8 work.Gustavo Picon2014-01-123-7/+15
|
* Running: autopep8 -vvvvv -i `find . -name '*.py'`Gustavo Picon2014-01-1210-36/+38
| | | | | --HG-- branch : autopep8
* Removed trailing whitespace from the codebase.Gustavo Picon2012-04-0310-44/+44
| | | | sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
* Bye bye, py2/3.Robert Brewer2011-07-0216-0/+849
|
* Bringing python3 back into trunk with its own py3 folder; what was in trunk ↵trunkRobert Brewer2011-02-2516-849/+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.
* Touchups to cpstats.pyRobert Brewer2011-02-231-3/+1
|
* New logging.statistics in wsgiserver, plus new lib/cpstats.pyRobert Brewer2011-02-231-1/+3
|
* Some backports (mostly whitespace, really) from the python3 branch.Robert Brewer2010-12-272-3/+2
|
* Fixing tutorials which did not run on command-line.Robert Brewer2010-01-0110-46/+94
|
* Switched the json_in tool to take advantage of the new body.processors.Robert Brewer2009-08-231-2/+2
|
* Removed py3print.Robert Brewer2009-06-141-1/+1
|
* trunk - adding a py3util module that will normalize as many differences ↵Lakin Wecker2009-06-011-1/+1
| | | | between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
* More trunk test fixes, inlucding backport of [2282] from python3 to trunk.Robert Brewer2009-05-311-1/+1
|
* Fix for #756 (Deprecate server.quickstart):Robert Brewer2008-01-129-42/+19
| | | | | | * 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.
* Fix for #740 (Default server.socket_host to IPv4 address).Robert Brewer2007-10-261-1/+1
|
* Added builtins and subscript to unrepr.Robert Brewer2007-07-211-0/+3
|
* New pywebd module. Trunk is now "3.1alpha".Robert Brewer2007-03-059-0/+9
|
* Fix for #660 (Add a 'wsgi.errors' logging handler).Robert Brewer2007-02-161-5/+5
|
* Force server.socket_host to be localhostSylvain Hellegouarch2007-01-121-0/+1
|
* More (final?) config overhaul work:Robert Brewer2006-08-251-2/+2
| | | | | | | | | | 1. Removed cherrypy.config.get! Instead, you should directly inspect cherrypy.request, response, server, etc. Note that request.config.get still works fine. 2. a) cherrypy.log is now an instance of LogManager. It's still callable, but now is the object you inspect instead of calling config.get("log*"). b) cherrypy.log_access is now cherrypy.log.access. 3. All threads should now have access to default Request and Response objects, not just the main thread. 4. deadlock.timeout is now request.timeout. 5. Renamed config.py to _cpconfig.py; cherrypy.config is now an instance of _cpconfig.Config. I still need to decide what to do about log_config (removed for now).
* Overhaul of config system:Robert Brewer2006-08-242-6/+3
| | | | | | | | | | | | | | | | | 1. New docstring for config module! 2. Put all entries into a config namespace. New deadlock, log, request and response namespaces. 3. Request and response entries now directly modify attributes of cherrypy.request and .response, and consumer code looks up those attributes, not config. This also allows interactive inspection of defaults. 4. Removed 'log_config' config entry. Use engine.on_start_engine_list.append(config.log_config) instead. 5. Old 'dispatch' entry is now 'request.dispatch'. 6. New log entries: log.error.file, log.error.function, log.access.file, log.access.function, log.screen. 7. 'server.max_request_body_size' is now 'request.max_body_size'. 8. environments now only apply to globalconf. 9. The 'development' environment has been removed, since its settings were all the default anyway. 10. The 'embedded' environment has been removed, since it duplicates the 'production' environment now. 11. There's a new 'test_suite' environment. 12. Removed log_file_not_found (from static.py). Something still needs to be done to config.wrap, so it can take dotted names as kwarg keys.
* Fix for #547 (serve_file still uses contentType instead of content_type). ↵Robert Brewer2006-08-121-3/+3
| | | | Thanks, michele!
* Changed server.start to server.quickstart, and server.start_all to server.start.Robert Brewer2006-08-0510-12/+10
|
* New cherrypy.quickstart function.Robert Brewer2006-06-051-9/+9
|
* All tutotials were missing an import os.path and could not runSylvain Hellegouarch2006-05-229-0/+9
|
* Root and config are now isolated per app:Robert Brewer2006-05-0711-35/+37
| | | | | | | | | | | 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.
* Moved the following config keys out of the "server." namespace (so that ↵Robert Brewer2006-05-072-6/+6
| | | | | | | | | | | | | | "server." may mean "httpserver"): * default_content_type * log_access_file * log_config_options * log_file * log_file_not_found * log_request_headers * log_to_screen * show_tracebacks * throw_errors
* Separated cherrypy.server (HTTP) from cherrypy.engine (app):Robert Brewer2006-05-0412-2/+13
| | | | | | | | 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.
* Only one failing test now (sessions)!Robert Brewer2006-04-262-8/+8
|
* Removed a bunch of instances of the word "filter".Robert Brewer2006-04-252-2/+2
|
* CP 3 initial checkin. Global filters have been replaced by request.hooks. ↵Robert Brewer2006-04-211-4/+4
| | | | Lots of renaming and reorg of modules.
* Less-confusing text in tut09_files.py docstring.Robert Brewer2006-02-061-1/+6
|
* Big change: camelCase to lower_with_underscore names (still need to update ↵Remi Delon2005-12-032-5/+5
| | | | the book)
* Tutorial fixes, plus a bug in _cputil.getErrorPage.Robert Brewer2005-10-0810-60/+86
|
* Using smaller PDF file for tutorials (to reduce the size of the tarball)Remi Delon2005-10-073-1/+1
|