Commit Graph

14 Commits

Author SHA1 Message Date
Ben Darnell bcdbd9468f Fix a dangling reference to callback in chatdemo.py. 2014-07-24 22:22:59 -04:00
Ben Darnell 2fdfcb1b19 Rewrite chatdemo to use a coroutine instead of callbacks. 2014-07-05 17:55:44 -04:00
Ben Darnell c9af9a7224 Remove redundant uses of @asynchronous with @gen.coroutine. 2014-01-02 20:51:59 -05:00
Ben Darnell 974c229c8b Update chat demo to be more exemplary.
Use gen.coroutine in auth handler (but not in wait_for_messages
because it makes things less clear and we don't have good cancellation
support).  No more mixin.  Python 3 compatible.
2013-03-16 00:52:04 -04:00
Ben Darnell 5c7d6d3edc Autoescaping is now the default, so remove the explicit setting in chatdemo. 2013-03-03 12:18:34 -05:00
Ben Darnell 920f96db6b Use distinct cookie names across all the demo apps. 2013-03-03 12:16:03 -05:00
Taylor Hughes 35b432fee2 Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use. 2012-08-31 23:47:11 -07:00
Ben Darnell 1b5adf99e4 Add on_connection_close hook to chat demo to clean up after closed connections.
Closes #354.
2011-09-08 22:51:45 -07:00
Ben Darnell 6a85be4577 Add autoescape application setting and convert chatdemo to use it. 2011-05-30 19:03:54 -07:00
Jon Parise cce8218a03 tornado.httpserver is unused in this scope 2010-12-13 10:28:09 -08:00
Ben Darnell a853850e26 Add convenience method Application.listen(port) so most apps don't need
to explicitly touch HTTPServer.
2010-11-15 21:15:32 -08:00
Casey c59cf2ab06 make logout link work 2009-09-14 11:08:27 -07:00
Bret Taylor 91d90b2ff1 Get rid of unnecessary/inconsistent mixin 2009-09-14 09:37:36 -07:00
Bret Taylor 2afa973493 Move Tornado project to Github 2009-09-10 00:50:51 -07:00