Commits on Mar 20, 2010
  1. demo for validation framework

    wmark committed with Vinay Feb 12, 2010
  2. fixed: string should be a variable

    wmark committed with Vinay Feb 12, 2010
  3. Added: Module `validators` for utilizing `FormEncode` validators, inc…

    …luding the two decorators `error_handler` and `validate`.
    The latter are made as similar to `TurboGears`'s as possible in order to make rewriting existing apps easier.
    wmark committed with Vinay Feb 12, 2010
  4. Merge branch 'performance' of git://

    Vinay committed Mar 20, 2010
Commits on Mar 19, 2010
  1. Add a callback to handle headers in httpclient as they come in, so

    they will be available for data handled by streaming_callback.
    Ben Darnell committed Mar 19, 2010
Commits on Mar 18, 2010
  1. Add a close method to AsyncHTTPClient.

    Ben Darnell committed Mar 18, 2010
  2. add a template_loader application setting for using custom template l…

    …oaders. a slight refactoring of TemplateLoader's load method to expose some internals. also, add a reset method to the loader that's called in debug mode to flush the template cache.
    Dolapo Falola committed with Ben Darnell Mar 18, 2010
  3. Support named groups in url pattern regexes. Note that either all or …

    of the groups to be passed to the handler must be named.
    Ben Darnell committed Mar 18, 2010
  4. Allow more than two consecutive curlies to appear in templates (and use

    the innermost).  This was previously a syntax error in the generated python.
    Ben Darnell committed Mar 18, 2010
Commits on Mar 17, 2010
  1. Replace all tabs with spaces.

    Ben Darnell committed Mar 17, 2010
Commits on Mar 14, 2010
Commits on Mar 9, 2010
  1. Fix bug with IOLoop's 'waker' pipe which rendered it ineffective on l…

    and mac (where pipes are unidirectional) and caused high cpu usage
    on solaris (where pipes are bidirectional).  Thanks to Jari Ahonen for
    finding the bug.
    Ben Darnell committed Mar 9, 2010
Commits on Mar 7, 2010
  1. In finish(), test if chunk is None rather than using truthiness to de…

    whether to call write().
    This fixes a discrepancy between finish() and write() when outputting json.
    Now both write({}) and finish({}) will output an empty json object.
    Ben Darnell committed Mar 7, 2010
Commits on Mar 4, 2010
  1. Set the close-on-exec flag on file descriptors used by IOLoop (epoll/…

    and pipe) so that long-lived autoreloading processes don't leak file
    Ben Darnell committed Mar 4, 2010
  2. Use a WeakKeyDictionary instead of a regular dictionary to associate

    IOLoop and AsyncHTTPClients.  This prevents leaks of memory and file
    descriptors when one process (in my case a unit test runner) create
    many IOLoop/AsyncHTTPClient pairs.
    Ben Darnell committed Mar 4, 2010
  3. Allow subclasses of IOLoop to override the default logging of

    uncaught exceptions in callbacks.
    Ben Darnell committed Mar 4, 2010
  4. Ensure that self.io_loop is set in HTTPServer.start(), so that HTTPSe…

    can clean up correctly.
    Ben Darnell committed Mar 4, 2010
Commits on Mar 2, 2010
  1. Revamp logging configuration.

    * If --logging=none, tornado will not touch the python logging config.
    * Colored output is optional.  If curses is not available or stderr is not
      a tty, non-colorized output will be used.
    * Log output to stderr can be suppressed with --log_to_stderr=false
    * Logs can be written to a file (non-colorized) with --log_file_prefix.
      Logs will be rotated, which can be controlled with --log_file_max_size
      and --log_file_num_backups.
    * By default, logs go to a file if --log_file_prefix is set and to stderr
      if it is not.  To log to both stderr and a file, --log_to_stderr must
      be set to true explicitly.
    Ben Darnell committed Mar 2, 2010
Commits on Feb 27, 2010
  1. Call the close() method on the wsgi response object if it exists.

    This is required by the WSGI spec, and cherrypy leaks memory without it.
    Ben Darnell committed Feb 27, 2010
Commits on Feb 26, 2010
  1. Add SERVER_PROTOCOL variable to wsgi environment. This turns out to be

    necessary for using cherrypy in a tornado WSGIContainer.
    Ben Darnell committed Feb 26, 2010
Commits on Feb 25, 2010
  1. Work around an odd error I occasionally see in autoreload (which causes

    autoreload to loop endlessly without restarting the process)
    Ben Darnell committed Feb 25, 2010
  2. Add a workaround for a bug in os.execv when used on Mac OS X versions

    prior to 10.6 when there are multiple threads in the process.
    Ben Darnell committed Feb 25, 2010
Commits on Feb 24, 2010
  1. Always reraise KeyboardInterrupt and SystemExit whenever IOLoop tries to

    swallow exceptions.
    Ben Darnell committed Feb 24, 2010
Commits on Feb 16, 2010
  1. Fix ioloop._KQueue to work correctly when listening for both read and…

    … write.
    kqueue.control must be called separately for each type of filter, not just
    once with the filters or'd together.
    Change adapted from
    Ben Darnell committed Feb 16, 2010
Commits on Feb 13, 2010
  1. Merge remote branch 'facebook/master' into performance

    wmark committed Feb 13, 2010
Commits on Feb 11, 2010
  1. + use cStringIO instead of raw strings for buffer operations

    + added IOStream::read_checked() for callback-controlled reading
    Morarenko Kirill committed Feb 11, 2010
Commits on Feb 5, 2010
  1. Support passing in cookie value directly in cases where you have to p…

    …arse the value from other sources (e.g., from the URL for Flash requests). Also fix documentation error for Facebook Connect.
    finiteloop committed Feb 5, 2010
Commits on Feb 4, 2010
  1. Don't set content-length in StaticFileHandler unless we're actually

    sending the content.  Some browsers get confused by this (e.g. the
    version of webkit embedded in fluid, but not the version used in chrome).
    Ben Darnell committed Feb 4, 2010