CherryPy / _cperror.py

Author Commit Message Labels Comments Date
Robert Brewer avatarRobert Brewer
Lots of mixedCase to lower_with_underscores.
Branches
cherrypy
Robert Brewer avatarRobert 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 avatarRobert 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 avatarRobert Brewer
WSGI-related changes:
Branches
cherrypy
Robert Brewer avatarRobert 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 avatarRobert Brewer
More work on tools.expires:
Branches
cherrypy
Robert Brewer avatarRobert 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 avatarRobert Brewer
Got rid of _cperror.Error base class, and "from _cperror import *" in top level.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
httptools.Version was overengineered. Shame on me. Using tuples gives a 2-3% speed boost.
Branches
cherrypy
Robert Brewer avatarRobert 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 avatarRobert 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 avatarRobert 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 avatarRobert Brewer
Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 Service Unavailable, and cherrypy.server will raise IOError.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Moved the following config keys out of the "server." namespace (so that "server." may mean "httpserver"):
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fix for #508 (Content-Type for 304s).
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Lots of changes to error and log handling:
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Removed old_name option from get_special_attribute.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Branches
cherrypy
Default avatar Remi Delon
Renamed queryString into query_string
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fix for #413 (Improve configuration error behavior).
Branches
cherrypy
Default avatar Remi Delon
Forgot browserUrl in camelCase to lowercase conversion
Branches
cherrypy
Default avatar Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Got rid of some superfluous custom exceptions.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Made response.body into a descriptor:
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Some code was setting response.body to a string instead of a [string].
Branches
cherrypy
Robert Brewer avatarRobert 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 avatarRobert Brewer
Fix for #367 (error pages should reset response headers). And a new _cpOnHTTPError special attribute just for kicks.
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fix for #359 (custom errors have no args attribute).
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Branches
cherrypy
Robert Brewer avatarRobert Brewer
Fix for #372 (browserUrl and querystrings).
Branches
cherrypy
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.