Source

CherryPy / cherrypy / _cputil.py

Author Commit Message Labels Comments Date
Robert Brewer
More state tests (onStart/Stop tests). Also made it more explicit that onStop's are called even if there's no HTTP server.
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.
Robert Brewer
Fix for ticket #310. Thanks to UnionPivo for the patch.
Robert Brewer
1. Fix for #305 (produce an error if a custom error page file can not be opened). 2. Also, a fix in _cputil.getErrorPage, where messages (and other kwargs set to None) were not printing defaults. 3. Removed defunct "server.httpErrors" config entry.
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…
John P. Speno
Removing a few unused import statements.
Robert Brewer
Moved responseCodes to _cputil (DRY).
Robert Brewer
Removed redundant lines in _cputil.
Michael Robinson
implimented fumanchus final suggestions for ticket:288
Michael Robinson
ticket:288 changes merged into trunk, deleted httperrors branch, added assertErrorPage to CPWebCase
Remi Delon
logTracebacks is now True by default
Robert Brewer
Initial fix for #286.
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"
Sylvain Hellegouarch
See bug 272
Sylvain Hellegouarch
Sylvain Hellegouarch
Fixed a little issue when the directory was not set to server.logFile
Sylvain Hellegouarch
Fixed bug 272
Robert Brewer
Oops. Forgot to remove debugging comment which shut off WrongUnreprValue errors.
Robert Brewer
All raised exceptions now conform to "raise Exception([arg])" syntax (no more "raise Exception" or "raise Exception, arg". See http://mail.python.org/pipermail/python-dev/2005-August/055687.html for Guido's pronouncement, which is now part of PEP 8.
Robert Brewer
New "showTracebacks" config option.
Robert Brewer
Newline fixes.
Robert Brewer
1. First stage of new access.log (ticket #257). Access log must be enabled in config. Old log not affected (yet). 2. New tests for both logs. 3. New "debug" messages in _cphttptools. 4. Bugfix: staticfilter path when "global". 5. Bugfix: test suite was not honoring --1.1 flag.
Robert Brewer
1. Config section [global] (pathless) is now distinct from [/] (root path); they are no longer synonyms. "global" is the parent of "/". 2. The Request-URI is now parsed much earlier in Request processing, so that onStartResource and error filter methods may have access to it. 3. Absolute URI's (on the request line) are now converted to relative URI's to facilitate configMap lookups. 4. A Request-URI of "*" sets cherrypy.request.path to "global" (again for configMap). 5. Fixed a bug in config.getAll where the initial slash was miss…
Robert Brewer
1. Partial fix for ticket #242 (ability to specify attributes in a config file). 2. Moved modules, attributes functions from server.py to _cputil.py. 3. A couple of newline fixes for unrelated modules.
Sylvain Hellegouarch
Added support for user defined plugins handling from within the config system. Should fix ticket 205. Three the new entries to the config system : server.filtersRoot : specify where CherryPy should look for finding filters modules, it's a list of strings. Nothing is prefixed to those paths server.inputFiltersDict : a dictionnary that defines which filters should act on the output. The keys are Python module (without the .py extension), the value is the classname within the module server.outputFil…
Michael Robinson
fixed sessionfilter bugs where ram and dbm sessions would not cleanup
Michael Robinson
Fixed bug where builtin filters would not be reinitialized if the server is restarted. Improvments to the sessionfilter test program
Michael Robinson
Default filters are now initilized when the server is started. This allows access to configuration data from within __init__ methods.
Robert Brewer
Newline fix.
  1. Prev
  2. 1
  3. 2
  4. Next