2012-09-04 05:09:29 +00:00
|
|
|
What's new in Tornado 2.4
|
|
|
|
=========================
|
2012-08-25 03:26:46 +00:00
|
|
|
|
2012-09-04 05:09:29 +00:00
|
|
|
Sep 4, 2012
|
2012-08-25 03:26:46 +00:00
|
|
|
-----------
|
|
|
|
|
2012-08-27 23:18:38 +00:00
|
|
|
General
|
|
|
|
~~~~~~~
|
|
|
|
|
2012-08-25 03:26:46 +00:00
|
|
|
* Fixed Python 3 bugs in `tornado.auth`, `tornado.locale`, and `tornado.wsgi`.
|
2012-08-27 23:18:38 +00:00
|
|
|
|
|
|
|
HTTP clients
|
|
|
|
~~~~~~~~~~~~
|
|
|
|
|
2012-08-25 03:26:46 +00:00
|
|
|
* Removed ``max_simultaneous_connections`` argument from `tornado.httpclient`
|
|
|
|
(both implementations). This argument hasn't been useful for some time
|
|
|
|
(if you were using it you probably want ``max_clients`` instead)
|
2013-03-16 05:41:50 +00:00
|
|
|
* ``tornado.simple_httpclient`` now accepts and ignores HTTP 1xx status
|
2012-08-25 03:26:46 +00:00
|
|
|
responses.
|
2012-08-27 23:18:38 +00:00
|
|
|
|
|
|
|
`tornado.ioloop` and `tornado.iostream`
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2013-03-16 05:41:50 +00:00
|
|
|
* Fixed a bug introduced in 2.3 that would cause `.IOStream` close callbacks
|
2012-08-27 23:18:38 +00:00
|
|
|
to not run if there were pending reads.
|
2013-03-16 05:41:50 +00:00
|
|
|
* Improved error handling in `.SSLIOStream` and SSL-enabled `.TCPServer`.
|
|
|
|
* ``SSLIOStream.get_ssl_certificate`` now has a ``binary_form`` argument
|
2012-08-25 03:26:46 +00:00
|
|
|
which is passed to ``SSLSocket.getpeercert``.
|
2013-03-16 05:41:50 +00:00
|
|
|
* ``SSLIOStream.write`` can now be called while the connection is in progress,
|
|
|
|
same as non-SSL `.IOStream` (but be careful not to send sensitive data until
|
2012-08-27 21:49:20 +00:00
|
|
|
the connection has completed and the certificate has been verified).
|
2013-03-16 05:41:50 +00:00
|
|
|
* `.IOLoop.add_handler` cannot be called more than once with the same file
|
2012-08-27 23:18:38 +00:00
|
|
|
descriptor. This was always true for ``epoll``, but now the other
|
|
|
|
implementations enforce it too.
|
2013-03-16 05:41:50 +00:00
|
|
|
* On Windows, `.TCPServer` uses ``SO_EXCLUSIVEADDRUSER`` instead of ``SO_REUSEADDR``.
|
2012-08-27 23:18:38 +00:00
|
|
|
|
|
|
|
`tornado.template`
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
* ``{% break %}`` and ``{% continue %}`` can now be used looping constructs
|
|
|
|
in templates.
|
|
|
|
* It is no longer an error for an if/else/for/etc block in a template to
|
|
|
|
have an empty body.
|
|
|
|
|
|
|
|
`tornado.testing`
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
2013-03-16 05:41:50 +00:00
|
|
|
* New class `tornado.testing.AsyncHTTPSTestCase` is like `.AsyncHTTPTestCase`.
|
2012-08-27 23:18:38 +00:00
|
|
|
but enables SSL for the testing server (by default using a self-signed
|
|
|
|
testing certificate).
|
|
|
|
* `tornado.testing.main` now accepts additional keyword arguments and forwards
|
|
|
|
them to `unittest.main`.
|
|
|
|
|
|
|
|
`tornado.web`
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
2013-03-16 05:41:50 +00:00
|
|
|
* New method `.RequestHandler.get_template_namespace` can be overridden to
|
2012-08-27 17:43:13 +00:00
|
|
|
add additional variables without modifying keyword arguments to
|
2013-03-16 05:41:50 +00:00
|
|
|
``render_string``.
|
|
|
|
* `.RequestHandler.add_header` now works with `.WSGIApplication`.
|
|
|
|
* `.RequestHandler.get_secure_cookie` now handles a potential error case.
|
|
|
|
* ``RequestHandler.__init__`` now calls ``super().__init__`` to ensure that
|
2012-08-27 23:18:38 +00:00
|
|
|
all constructors are called when multiple inheritance is used.
|
2012-08-28 17:43:13 +00:00
|
|
|
* Docs have been updated with a description of all available
|
|
|
|
:py:attr:`Application settings <tornado.web.Application.settings>`
|
2012-08-27 23:18:38 +00:00
|
|
|
|
|
|
|
Other modules
|
|
|
|
~~~~~~~~~~~~~
|
|
|
|
|
2013-03-16 05:41:50 +00:00
|
|
|
* `.OAuthMixin` now accepts ``"oob"`` as a ``callback_uri``.
|
|
|
|
* `.OpenIdMixin` now also returns the ``claimed_id`` field for the user.
|
2012-08-27 23:18:38 +00:00
|
|
|
* `tornado.platform.twisted` shutdown sequence is now more compatible.
|
|
|
|
* The logging configuration used in `tornado.options` is now more tolerant
|
|
|
|
of non-ascii byte strings.
|