Source

CherryPyFixTicketUrls / _cperror.py

Author Commit Message Labels Comments Date
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Branches
cherrypy
Robert Brewer
New deadlock monitor which sets Response.timed_out to True if Response.time < now - config.get("deadlock_timeout"). The request thread periodically checkes Response.timed_out and raises TimeoutError if it is True. Current checks are in HookMap.run, Request.respond, Body.__set__, and Response.finalize, more can be added later if needed.
Branches
cherrypy
Robert Brewer
Moved request.handler from a function (with vpath, and request.params included in cell refs) to an instance of a callable PageHandler class (with vpath, params included as .args, .kwargs attributes). Instances of HTTPRedirect and HTTPError (including NotFound) can now also be set directly as request.handler (they raise self when called).
Branches
cherrypy
Robert Brewer
WSGI-related changes: 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_PROTOCO…
Branches
cherrypy
Robert Brewer
Fixes for #544 and #545 (serveFile issues) in CP 3. Fixes in CP 2 branch coming in a separate changeset.
Branches
cherrypy
Robert Brewer
More work on tools.expires: 1. Now takes 'secs' arg instead of 'e_time'. 2. The 'force' arg defaults to False now. 3. Set 'force' to True to imply ignore_indicators. 4. New cherrypy.reponse.time attribute: the time.time() which is used for the 'Date' response header.
Branches
cherrypy
Robert Brewer
Renamed httptools to "http" to reduce confusion with new cherrypy.tools. Moved non-Tool-related code from cptools to {{{lib/__init__}}}. Added docstrings.
Branches
cherrypy
Robert Brewer
Got rid of _cperror.Error base class, and "from _cperror import *" in top level.
Branches
cherrypy
Robert Brewer
httptools.Version was overengineered. Shame on me. Using tuples gives a 2-3% speed boost.
Branches
cherrypy
Robert Brewer
Separated tool construction from default toolbox by renaming cherrypy.tools module to _cptools, and binding cherrypy tools to a new _cptools.default_toolbox object. Also cleaned up the top-level cherrypy namespace quite a bit, and moved some user code out of lib.cptools.
Branches
cherrypy
Robert Brewer
Fix for #490 (InternalRedirect should auto-detect params). Removed the "params" arg from InternalRedirect; set cherrypy.request.params directly (before raising InternalRedirect) instead.
Branches
cherrypy
Robert Brewer
Fix for #507 (InternalRedirect supports only absolute paths). Paths relative to script_name are now possible by omitting the leading slash from the path.
Branches
cherrypy
Robert Brewer
Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 Service Unavailable, and cherrypy.server will raise IOError.
Branches
cherrypy
Robert Brewer
Moved the following config keys out of the "server." namespace (so that "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
Branches
cherrypy
Robert Brewer
Fix for #508 (Content-Type for 304s).
Branches
cherrypy
Robert Brewer
Lots of changes to error and log handling: 1. Removed RequestHandled and InternalError. 2. Error response is now overridable by replacing request.error_response. Tools should do this in setup(). 3. New request.log_access attribute. 4. Moved response.handleError to request.handle_error. 5. Logging of tracebacks and request headers are now tools. 6. New ErrorRedirect tool class. 7. Tools may now be anonymous (not necessary to be place…
Branches
cherrypy
Robert Brewer
Removed old_name option from get_special_attribute.
Branches
cherrypy
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Branches
cherrypy
Remi Delon
Renamed queryString into query_string
Branches
cherrypy
Robert Brewer
Fix for #413 (Improve configuration error behavior).
Branches
cherrypy
Remi Delon
Forgot browserUrl in camelCase to lowercase conversion
Branches
cherrypy
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Branches
cherrypy
Robert Brewer
Got rid of some superfluous custom exceptions.
Branches
cherrypy
Robert Brewer
Made response.body into a descriptor: 1. Now *anytime* you set body it will coerce it to an iterable, so code outside Request.main doesn't have to be as careful/aware of how to do that. 2. New response.collapse_body() function, which collapses the body into a single new_body string, sets response.body to [new_body], and returns new_body. 3. New request.executeMain flag (bool), to govern whether Request.main method is called. This r…
Branches
cherrypy
Robert Brewer
Some code was setting response.body to a string instead of a [string].
Branches
cherrypy
Robert Brewer
Made request.browserUrl a read-only property, since it is a calculated value. If you want to change its value now, change request.base, path, or queryString.
Branches
cherrypy
Robert Brewer
Fix for #367 (error pages should reset response headers). And a new _cpOnHTTPError special attribute just for kicks.
Branches
cherrypy
Robert Brewer
Fix for #359 (custom errors have no args attribute).
Branches
cherrypy
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Branches
cherrypy
Robert Brewer
Fix for #372 (browserUrl and querystrings).
Branches
cherrypy
  1. Prev
  2. 1
  3. 2
  4. Next