Source

CherryPy / cherrypy / _cperror.py

Author Commit Message Labels Comments Date
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.
Robert Brewer
1. New cherrypy.request.version, an instance of new _cphttptools.Version class. This will be min(request.protocol, server.protocolVersion). 2. Content-Length response header now defaults to None (since it must be finalized anyway). 3. Test suite: all client requests now HTTP/1.1 4. Test suite: new cmdline arg -1.1 to run server(s) as HTTP/1.1. Only -serverless currently passes as 1.1. 5. Test suite: turned getOptions into an Options object.
Robert Brewer
Added a cherrypy._appserver_state flag. Helps report errors when server.start() has not been called or did not complete normally.
Robert Brewer
InternalRedirect now takes either str or dict as "params" argument.
Robert Brewer
Implements ticket #195. 1. cpg module removed, all content moved into cherrypy.__init__. 2. Removed some circular imports in sessionfilter by moving sessionfilter.sessionfilter and _sessionTypes into sessionfilter.__init__. 3. renamed _cpconfig to "config". 4. renamed _cpserver to "server". 5. renamed cperror to _cperror; cherrypy.__init__ now imports * from _cperror.