]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update docs for deprecations and removals.
authorBen Darnell <ben@bendarnell.com>
Sat, 21 Jun 2014 18:20:15 +0000 (14:20 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 21 Jun 2014 18:20:15 +0000 (14:20 -0400)
docs/overview.rst
docs/releases/next.rst
docs/releases/v2.2.0.rst
docs/websocket.rst
tornado/auth.py
tornado/testing.py

index 21ccb79d928b9244cf508900c8e4c305597e6d42..77d930aeecd83d9886d1715b3dd41926ec2aece4 100644 (file)
@@ -199,13 +199,6 @@ argument (note that this exception is not guaranteed to be the current
 exception in ``sys.exc_info``, so ``write_error`` must use e.g.
 `traceback.format_exception` instead of `traceback.format_exc`).
 
-In Tornado 2.0 and earlier, custom error pages were implemented by overriding
-``RequestHandler.get_error_html``, which returned the error page as a string
-instead of calling the normal output methods (and had slightly different
-semantics for exceptions).  This method is still supported, but it is
-deprecated and applications are encouraged to switch to
-`RequestHandler.write_error`.
-
 Redirection
 ~~~~~~~~~~~
 
index 445728d584653c3154443ea335d656b4a8387db9..2b5e720411a8504e505ef96d323e8e48ce51beeb 100644 (file)
@@ -115,7 +115,9 @@ Other notes
   for public use; applications are expected to write their responses
   via the `.HTTPConnection` interface.
 * The `.HTTPServerRequest.write` and `.HTTPServerRequest.finish` methods
-  are now deprecated.
+  are now deprecated.  (`.RequestHandler.write` and `.RequestHandler.finish`
+  are *not* deprecated; this only applies to the methods on
+  `.HTTPServerRequest`)
 * `.HTTPServer` now supports `.HTTPServerConnectionDelegate` in addition to
   the old ``request_callback`` interface.  The delegate interface supports
   streaming of request bodies.
index 93df0f880794002dfb1d968a877377eb43b75a9b..a3298c557cad2d3c17484e2d0405f0dbe16dcab1 100644 (file)
@@ -98,12 +98,12 @@ Backwards-incompatible changes
 * Many bugs were fixed in all supported protocol versions.
 * `tornado.websocket` no longer supports the older "draft 76" version
   of the websocket protocol by default, although this version can
-  be enabled by overriding `tornado.websocket.WebSocketHandler.allow_draft76`.
+  be enabled by overriding ``tornado.websocket.WebSocketHandler.allow_draft76``.
 * `.WebSocketHandler.write_message` now accepts a ``binary`` argument
   to send binary messages.
 * Subprotocols (i.e. the ``Sec-WebSocket-Protocol`` header) are now supported;
   see the `.WebSocketHandler.select_subprotocol` method for details.
-* `.WebSocketHandler.get_websocket_scheme` can be used to select the
+* ``.WebSocketHandler.get_websocket_scheme`` can be used to select the
   appropriate url scheme (``ws://`` or ``wss://``) in cases where
   ``HTTPRequest.protocol`` is not set correctly.
 
index d1ec8ad54aa1c4754142f64a6212c34107c00739..9e1aca8c2f3c7d271c5294d8c244be925dcb57f9 100644 (file)
@@ -22,9 +22,7 @@
    Configuration
    -------------
 
-   .. automethod:: WebSocketHandler.allow_draft76
    .. automethod:: WebSocketHandler.check_origin
-   .. automethod:: WebSocketHandler.get_websocket_scheme
    .. automethod:: WebSocketHandler.set_nodelay
 
    Other
index f8dadb6692a46e8cfe89787ab374d554a7df0d4e..7bd3fa1ed490975d9429320b8f5ed85d2b45d0e6 100644 (file)
@@ -883,9 +883,10 @@ class FriendFeedMixin(OAuthMixin):
 class GoogleMixin(OpenIdMixin, OAuthMixin):
     """Google Open ID / OAuth authentication.
 
-    *Deprecated:* New applications should use `GoogleOAuth2Mixin`
-    below instead of this class. As of May 19, 2014, Google has stopped
-    supporting registration-free authentication.
+    .. deprecated:: 4.0
+       New applications should use `GoogleOAuth2Mixin`
+       below instead of this class. As of May 19, 2014, Google has stopped
+       supporting registration-free authentication.
 
     No application registration is necessary to use Google for
     authentication or to access Google resources on behalf of a user.
@@ -1053,9 +1054,10 @@ class GoogleOAuth2Mixin(OAuth2Mixin):
 class FacebookMixin(object):
     """Facebook Connect authentication.
 
-    *Deprecated:* New applications should use `FacebookGraphMixin`
-    below instead of this class.  This class does not support the
-    Future-based interface seen on other classes in this module.
+    .. deprecated:: 1.1
+       New applications should use `FacebookGraphMixin`
+       below instead of this class.  This class does not support the
+       Future-based interface seen on other classes in this module.
 
     To authenticate with Facebook, register your application with
     Facebook at http://www.facebook.com/developers/apps.php. Then
index b1564aa69080e7fefe5312e3b08594bcaf929e10..b4bfb274a23350fd1f2c4b89c61a8601ddab96d3 100644 (file)
@@ -70,8 +70,8 @@ def get_unused_port():
     only that a series of get_unused_port calls in a single process return
     distinct ports.
 
-    **Deprecated**.  Use bind_unused_port instead, which is guaranteed
-    to find an unused port.
+    .. deprecated::
+       Use bind_unused_port instead, which is guaranteed to find an unused port.
     """
     global _next_port
     port = _next_port