Commits

Author Commit Message Labels Comments Date
Robert Brewer
Fix for #700 (Deprecate the wsgiapp Tool).
zakj
Primarily to support text-based content types that do not start with "text/", added text_only and add_charset boolean arguments to lib.encoding.encode(), both defaulting to True.
Robert Brewer
New WebCase.time attribute (seconds to complete the last getPage call).
Lakin Wecker
CPWebCase.getPage: Fixed a bug whereby it was not returning the result of calling webtest.WebCase.getPage.
Robert Brewer
More bus logging.
Robert Brewer
Bus docs, plus dropping the 'restart' channel in favor of calling 'exit' on restart.
dan
Moving execv to the main thread to fix restarts on OSX. Removing Reexec. Changing the reloader to signal the bus to restart.
Robert Brewer
Final fixes to test_states.
Robert Brewer
Some fixes to test_states.
Lakin Wecker
Daemonizer Plugin: fixed the references to stdin,stdout,and stderr to refer to instance variables, rather than locals which no longer exist.
Lakin Wecker
Static tool: allow the use of ~ as a placeholder for a the user's home directory in the path names.
Robert Brewer
Reworked WSPBus plugins; most now have a 'subscribe' method which attaches them to the bus in a separate step from init. This allows frameworks to create canonical plugin instances but delay or skip their subscription. Some plugins' method names changed (from e.g. {{{__call__}}} to {{{start}}}) to take advantage of a new SimplePlugin base class. The daemonize func is now a Daemonizer class for this reason. Also removed the SubscribedObject class; it was too much magic. The few consumers of it in CherryPy revert to calling canonical plugin instances instead.
Robert Brewer
Made test.CommandLineParser shortopts/longopts into instance attributes for easier extension.
Robert Brewer
Added an HTTPError.get_error_page for easier overriding.
Lakin Wecker
Bus: added a register method which can be used to register plugins. The plugin is responsible for actually subscribing to the desired channels in Plugin._attach(bus).
Lakin Wecker
The logging exception when daemonized can be avoided by simply exiting in the parent processes when daemonizing. According to http://www.faqs.org/faqs/unix-faq/programmer/faq/ Section 1.7, Step 6 - it's the child process that should close the std (in,out,err) descriptors. Thankfully, os.dup2(fd,fd2) will close fd2 if needed.
Lakin Wecker
Oops, fixes an mis-commit in r1744.
Lakin Wecker
Added a workaround to daemonize that ensures all logging handlers are shutdown before we close stdout/stderr/stdin. This works around a bug reported in #646, and satisfies the test case in r1743. Note, that that this will not fix the original posters issue in #646 as he is using an external daemonize program.
Lakin Wecker
Test suite: added a test which re-produces the bug with daemonize that's documented in #646.
Robert Brewer
Oops.
Robert Brewer
Test suite: prefer command-line args to base conf.
Robert Brewer
Unregister Ctrl-C handler for Windows console.
Robert Brewer
Doc updates, better memcached detection in test_session, and changed cherrypy.url to be more easily mockable.
Robert Brewer
Fix for # 738 (Misspelled except statement shadows builtin KeyError exception).
Robert Brewer
Test and fix for #737 (not possible to have custom request handler on application mount point).
Robert Brewer
New MemcachedSession class. The Session class API had to change a bit: 'setup' must now be a classmethod.
Robert Brewer
Missing import in test/helper.py.
Robert Brewer
Fix for #539 (Dynamic spare thread creation and destruction).
Robert Brewer
Bah. isAlive is a function, not a property.
Robert Brewer
Port to trunk of [1706] and [1714].
  1. Prev
  2. Next