Source

CherryPy / cherrypy / _cperror.py

Author Commit Message Labels Comments Date
Robert Brewer
Doc tweaks.
Robert Brewer
InternalRedirect changes:
Robert Brewer
Applied suggested patch to #584 (Need a way to get the url submitted to a InternalRedirect). See the ticket for details.
Robert Brewer
Collapsed request.url and tree.url into a single cherrypy.url function.
Robert Brewer
Got rid of cherrypy.request.path. Use request.script_name + request.path_info instead (usually, just path_info is what you really want).
Robert Brewer
Improved tree.url() to include base. Also replaced request.browser_url with request.url().
Joseph Tate
Make a CherryPyException, from which all exceptions inherit, and also is available from "import cherrypy".
Joseph Tate
Derive all exceptions from a CP defined class so that they can be handled as a group by CP applications
Robert Brewer
API and docstring cleanups:
Robert Brewer
More (final?) config overhaul work:
Robert Brewer
Overhaul of config system:
Robert Brewer
Lots of mixedCase to lower_with_underscores.
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.
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).
Robert Brewer
WSGI-related changes:
Robert Brewer
Fixes for #544 and #545 (serveFile issues) in CP 3. Fixes in CP 2 branch coming in a separate changeset.
Robert Brewer
More work on tools.expires:
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.
Robert Brewer
Got rid of _cperror.Error base class, and "from _cperror import *" in top level.
Robert Brewer
httptools.Version was overengineered. Shame on me. Using tuples gives a 2-3% speed boost.
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.
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.
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.
Robert Brewer
Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 Service Unavailable, and cherrypy.server will raise IOError.
Robert Brewer
Moved the following config keys out of the "server." namespace (so that "server." may mean "httpserver"):
Robert Brewer
Fix for #508 (Content-Type for 304s).
Robert Brewer
Lots of changes to error and log handling:
Robert Brewer
Removed old_name option from get_special_attribute.
Robert Brewer
CP 3 initial checkin. Global filters have been replaced by request.hooks. Lots of renaming and reorg of modules.
Remi Delon
Renamed queryString into query_string
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next