| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
pre-commit run double-quote-string-fixer --all-files
|
| |
|
| |
|
|
|
|
|
| |
--HG--
branch : autopep8
|
|
|
|
| |
sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
|
| |
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
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''
|
| |
|
|
|
|
| |
modules that have a 'setup_server' function. This allows us to include modules which do not need to start a server in the normal test.py testList and exercise them at every full run. See, for example, that test_bus and test_states are now included.
|
| |
|
|
|
|
| |
a separate process.
|
|
|
|
|
|
|
|
|
| |
1. Change restsrv.servers.ServerManager (multiple httpservers) to ServerAdapter (one httpserver).
2. cherrypy.server is now a subclass of ServerAdapter, and is subscribed by default.
3. Made several plugin methods idempotent that weren't before.
4. Added names to win32 bus state events. Also fixed a buglet in win32 block().
5. Added repr to wspbus.states.State objects.
6. Did ''not'' change any callers of cherrypy.server other than what was necessary, to help prove the fixes work without breaking compatibility. Future changesets will be used to modify docs and tutorials n such.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
interactive test output features, as well as the "hit enter" prompt at the end.
|
|
|
|
| |
--ssl" to test.
|
|
|
|
|
|
| |
1. Fix to test_config.
2. Skipped some additional tests for known bugs.
3. Documented that mod_python doesn't allow chunked encoding in request.
|
|
|
|
| |
"ignore_headers(['Range'])" Tool by default.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
1. cherrypy.Application is now a WSGI callable.
2. cherrypy.tree may now be used as a WSGI dispatcher by simply calling it. This replaces the _cpwsgi.wsgiApp function.
3. You may now mount arbitrary WSGI apps using tree.graft(wsgi callable, script name).
4. If you set an Application object's script_name to None, it will try to pull script_name from cherrypy.request.wsgi_environ['SCRIPT_NAME'].
There's a new test_wsgiapps.py (copied from the branch) which helps demonstrate the changes.
|
|
|
|
| |
fail, especially tutorials.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
modpython_gateway).
|
|
server). All test modules now wrap the server-side code in a "setup_server" function. New test\modpy module (with several tests failing).
|