Source

CherryPy / cherrypy / _cperror.py

Author Commit Message Labels Comments Date
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
Robert Brewer
Fix for #413 (Improve configuration error behavior).
Remi Delon
Forgot browserUrl in camelCase to lowercase conversion
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer
Got rid of some superfluous custom exceptions.
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…
Robert Brewer
Some code was setting response.body to a string instead of a [string].
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.
Robert Brewer
Fix for #367 (error pages should reset response headers). And a new _cpOnHTTPError special attribute just for kicks.
Robert Brewer
Fix for #359 (custom errors have no args attribute).
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Robert Brewer
Fix for #372 (browserUrl and querystrings).
Robert Brewer
Fix for #356 (formalize server.environment as a set of config defaults). New server.logFileNotFound boolean.
Robert Brewer
Bah. Forgot an import. That'll teach me to skip the tests.
Robert Brewer
NotFound path arg now defaults to cherrypy.request.path.
Robert Brewer
Fix for #307. Made InternalError a subclass of HTTPError(500). Removed all use of InternalError from the framework; it should be removed in 2.2.
John P. Speno
Removed unneeded 'import os'
Robert Brewer
Fix for ticket #317? More importantly, some error-handling and other cleanups: 1. _cphttptools.checkStatus moved to lib.cptools.validStatus. Illegal status codes now raise HTTPError(500) with custom messages. 2. _cputil.responseCodes moved into cptools. 3. _cpOnError logic *all* moved into HTTPError.set_response. 4. _cputil.getErrorStatusAndPage changed to getErrorPage. 5. Made _cputil._HTTPErrorTemplate into a string instead of a function, which the new getErrorPage interpo…
Robert Brewer
Fix for #318, #322 and #323. #318: streaming output is now off by default. This means you may now use "yield" without worrying about pre-determining the status and headers. To enable streaming output you must set the config entry "streamResponse" to True. You should probably also use "yield", since it doesn't make much sense to stream a single chunk. #322: HTTP/1.0 requests may now stream their output. #323: moved request.ver…
Michael Robinson
implimented changes needed to re-close ticket:288
Robert Brewer
Bah. Newline badness again.
Robert Brewer
Removed redundant lines in _cputil.
Michael Robinson
ticket:288 changes merged into trunk, deleted httperrors branch, added assertErrorPage to CPWebCase
Michael Robinson
fixed HTTPStatusError, it did not except codes > 499
Michael Robinson
HTTPClientError renamed HTTPStatusError, removed some outdated session documentation
Michael Robinson
improvments to the http errors tutorial (10), minor cleanups of the http error code.
Michael Robinson
httperrors branch merged into the trunk, the configuration paramater "showTracebacks" is now "server.showTracebacks"
Robert Brewer
1. Initial support for partial GET (Range request header): new _cphttptools.get_ranges() function for use in page handlers and serve_file(). 2. New HTTPClientError exception; NotFound now inherits from it.
Robert Brewer
Fix for ticket #239. 1. httptools.redirect() now raises HTTPRedirect(). 2. httptools.py is now formally deprecated. 3. HTTPRedirect now always outputs complete absolute URL's.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. Next