Commits

Author Commit Message Labels Comments Date
Robert Brewer
Tweaks to docs, line lengths, tests, and number of serving lookups.
Robert Brewer
Fix for #525 (Support Deleting Sessions).
Robert Brewer
Further fix for persistent conns (ignore timeouts).
Robert Brewer
Logging cleanups: 1. Moved LogManager to new _cplogging module. 2. Apps now possess a 'log' attribute (a LogManager instance that includes both error and access) instead of separate error_log and access_log. 3. Fixed broken default error_log.
Robert Brewer
A couple fixes to CP3's _cpwsgiserver.py for Python 2.3 compatibility.
Robert Brewer
Fixes for #479 (CherryPy crashes on using seteuid / setegid) for CP 2.2 and CP 3.
Robert Brewer
API and docstring cleanups: 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. .
Robert Brewer
Hook priority system: 1. All hook callbacks are now wrapped in an instance of _cprequest.Hook, where failsafe, priority, and kwargs are now stored. 2. Hooks are run in order of their "priority" attribute; lower numbers first. Default 50, range 0-100, floats OK. 2. cherrypy namespace: moved "serving" to "_serving", added cherrypy.Tool, changed "LogManager" to "_LogManager". 3. Set gzip.priority to 90.
Robert Brewer
Fix for the fix for #551 (basically, die on timeout instead of responding with 408).
Robert Brewer
More (final?) config overhaul work: 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 d…
Robert Brewer
Wrapper for hook functions now takes the name of the wrapped function.
Robert Brewer
Fixes to some typos in [1274].
Robert Brewer
Overhaul of config system: 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_star…
Robert Brewer
Made all imports absolute "just in case" for Python 2.5.
Robert Brewer
WSGI server: uncaught exceptions now write tracebacks to the response stream if possible.
Robert Brewer
Fixes for Python 2.5rc1: 1. When the WSGI server socket is closed, socket.accept now fails with a socket.error "Socket operation on non-socket" (see _cpwsgiserver.py diff). 2. The output of Response.SimpleCookie now has no trailing semicolon (see test_core.py diff). 3. Some attributes of unittest.TestCase moved from double-underscore to single (see webtest.py diff).
Robert Brewer
Moved the 'methods_with_bodies' feature from config to an attribute of the Request object; use a hook or tool to set it.
Robert Brewer
tool docstrings.
Robert Brewer
Default ACTUAL_SERVER_PROTOCOL to "HTTP/1.1". If None, then Request.run fails with "unsubscriptable object".
Robert Brewer
Don't log HTTPError or redirect in hookmap.run().
Robert Brewer
Fix to etags when 412 has already been raised.
Robert Brewer
Touch-up to test suite help (closes #333 (run test suite on arbitrary port)).
Sylvain Hellegouarch
Added mising request_line when exception is raised
Robert Brewer
Minor chunked encoding fix, plus test suite fixes for cpmodpy.
Robert Brewer
Fixed the HTTP/1.0 test suite. This involved moving wsgi SERVER_PROTOCOL back (to what the spec says!) and adding a new non-standard ACTUAL_SERVER_PROTOCOL entry.
Robert Brewer
Fix to test suite longopts.
Robert Brewer
Fix for #555 (Error propagation in hooks). Failsafe flags are now per-callback, not per-callpoint. If you want a given hook to be failsafe, either set callback.failsafe = True or (if you cannot do that) call attach(point, callback, failsafe=True). The previous semantic of 'failsafe' unfortunately also meant 'fail silently'. This has been corrected; now, when errors occur during the run of callbacks for a given call point, the last one will be raised (after all failsafe callbacks have completed).
Robert Brewer
Fix for #553 (pure WSGI apps on the tree). Request.app now MUST be a cherrypy.Application instance (not None) before Request.run() is called.
Robert Brewer
Support for max_request_body_size when decoding chunked request body (also fixes a long-standing bug when max header size exceeded).
Robert Brewer
Fix for #497 (decode a "Transfer-Encoding: chunked" request).
  1. Prev
  2. Next