| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
pre-commit run double-quote-string-fixer --all-files
|
| |
|
| |
|
|
|
|
| |
engine.
|
| |
|
| |
|
|
|
|
|
| |
--HG--
branch : autopep8
|
|
|
|
| |
sed -i '' -e 's/ *$//' `find cherrypy -name '*.py'`
|
|
|
|
| |
running tests
|
| |
|
|
|
|
| |
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''
|
| |
|
|
|
|
| |
maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
|
| |
|
| |
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
Finally got all the bus operations where I want em:
1. There's a new EXITING state
2. bus.block() waits for EXITING now instead of STOPPED, and also wait for all threads to exit, so the main thread doesn't exit (and run atexit callbacks) too early.
3. bus.exit() no longer calls sys.exit. Instead, exit is used to signal the main thread to unblock and terminate normally. This means some callers of stop need(ed) to be changed to call exit instead.
4. bus.block() no longer takes a state arg; it's now only for use by the main thread. Call bus.wait(state) to wait for other states.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
svn:externals links). Reinstated wsgiserver as a subpackage. Also set version to 3.0.1alpha.
|
| |
|
| |
|
|
|
|
|
|
| |
read_headers method. This saves a pass on parsing headers (as well as a lot of lower() calls and such).
benchmark: removed InternalRedirect from pipeline.
|
|
|
|
| |
socket options more easily.
|
|
|
|
|
|
|
| |
1. Turned off default tools.
2. New index page for testing in a browser.
3. Added row of averages to thread report.
4. Fixed bug in stop.
|
| |
|
|
|
|
|
|
|
|
| |
1. Removed WrongConfigValue, decorate, decorate_all, and ExposeItems.
2. Moved cherrypy.logtime to cherrypy.log.time.
3. Reduced cherrypy.config.globalconf back to just cherrypy.config.
4. Moved _cpconfig.default_conf to config.defaults.
.
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
more useful.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
"remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
|
|
|
|
|
|
|
| |
1. Changed Request.run from request_line arg to deconstructed args: method, path, query_string, and protocol.
2. Moved HTTP protocol checking from _cprequest to _cpwsgiserver. What was cherrypy.response.version is now cherrypy.request.protocol (tuple form of SERVER_PROTOCOL). request.version and response.version attributes removed. _cpwsgiserver now writes out server.protocol, not SERVER_PROTOCOL (which is a misnomer, it really should have been REQUEST_PROTOCOL).
3. path unquoting was also moved from _cprequest to _cpwsgiserver (like most other WSGI servers).
4. New test for absoluteURI in the Request-Line.
|
| |
|
| |
|
| |
|