Commits

Show all
Author Commit Message Labels Comments Date
John P. Speno
Fixed session example.
Robert Brewer
Fix for ticket #310. Thanks to UnionPivo for the patch.
Robert Brewer
Phew. Tracked down all possible occurrences of KeyboardInterrupt and trapped them appropriately. There's still a problem in test_states when using the CherryPyHTTPServer (it hangs during KeyboardInterrupt testing), but all other servers pass. Maybe *this* fixes #321. ;)
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
More server state tests and fixes: 1. The built-in HTTP servers all failed on restart() because they weren't closing the socket on server.stop. 2. HTTP server start() and stop() methods now do more to make sure the server is truly in a started or stopped state before they return. 3. server.py does a lot more checking and waiting to make sure the HTTP server is truly started or stopped, before allowing the main thread to proceed. So…
Robert Brewer
Updated ReturnVsYield.pdf
Robert Brewer
Fix for #327 (broken test due to missing setConfig).
Robert Brewer
Typo in server.run_server ("server.socketPort").
John P. Speno
Fix for #326. Test case will come later.
Robert Brewer
New test_states module for testing server start/stop/restart, as well as NotReady, KeyboardInterrupts and SystemExit, etc.
Robert Brewer
Removed redundant KeyboardInterrupt/SystemExit traps in _cphttpserver (server.py traps them).
John P. Speno
Removed unneeded 'import os'
Robert Brewer
Doc updates for [682] (error-handling changes).
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
Closes #324 (wontfix). Added more extensive comment regarding relative paths for cptools.serveFile.
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…
Robert Brewer
webtest assertHeader now coerces the value arg to a string before comparing.
Christian Wyglendowski
Added descriptions of all the core config options that I am aware of related to logging.
Christian Wyglendowski
Fix for #316 (old sessionfilter package conflict).
John P. Speno
Fixing missing self in KeyTitlingDict.setdefault().
Robert Brewer
Fix for #306 (doc typos).
Robert Brewer
Fix for #315. Removed Python 2.4 dependency (@-syntax), which was killing setup.py under 2.3.
Remi Delon
Fixed #313 (when favicon.ico was being served, the session wasn't released because the machinery was being bypassed)
Robert Brewer
Made request.headerMap a KeyTitlingDict.
John P. Speno
Fix for bug #314 - error in server.restart(). Fix by Christian Wyglendowski.
Robert Brewer
Turned a bunch of cherrypy.request calls into local calls.
Robert Brewer
Fix for #309 (confusion between threads and requests).
Robert Brewer
Docs: added a figure showing the HTTP conversation process.
Robert Brewer
Moved responseCodes to _cputil (DRY).
  1. Prev
  2. Next