Ben Darnell
c9af9a7224
Remove redundant uses of @asynchronous with @gen.coroutine.
2014-01-02 20:51:59 -05:00
Ben Darnell
9298756eec
Add a simple end-to-end demo of TwitterMixin.
2013-05-31 21:46:53 -04:00
Ben Darnell
c7bc4b6188
Add a stack_context benchmark.
2013-05-26 14:15:12 -04:00
Ozan Yerli
449652b603
Unnecessary MozWebSocket in the WebSocket demo
...
WebSocket is implemented in all modern web browsers.
2013-04-21 21:30:23 +03:00
Ben Darnell
74c6075d58
Fix escaping error in blog demo
...
Closes #726 .
2013-04-13 16:40:23 -04:00
Ben Darnell
d02b031bc9
Add an ioloop command line flag to the benchmark script.
2013-04-07 13:07:23 -04:00
Ben Darnell
8ddc760f18
Fix draft76 websocket protocol; fix websocket demo for python 3.
2013-03-18 20:52:23 -04:00
Ben Darnell
813f89cf48
Convert auth demo to coroutines.
2013-03-16 19:12:20 -04: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
bc4917b65b
Use autoescape in websocket chat demo.
2013-03-03 12:23:28 -05: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
Ben Darnell
17ec459c85
Use autoescape in blog demo.
2013-03-03 12:09:29 -05:00
Ben Darnell
9876ede0f2
Remove embedded copy of markdown.py from blog demo.
2013-03-03 11:56:47 -05:00
Ben Darnell
f220182aa9
Use autoescape in appengine blog demo.
2013-03-03 11:54:35 -05:00
Ben Darnell
19f7351d14
Remove markdown support from app engine blog demo.
2013-03-03 11:16:07 -05:00
Ben Darnell
b00167b9d6
Modernize app engine demo: py27, non-CGI interface, get_template_namespace.
2013-03-03 11:08:25 -05:00
Michael Leonhard
56fcc364f7
Fix s3server.py to stop truncating downloads of images and other non-text files
2013-01-20 16:48:05 -08:00
Ben Darnell
186e947112
Remove tornado.database, which is now distributed separately.
2012-09-16 14:02:49 -07: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
4386f1b088
Make authdemo's logout less confusing.
...
Closes #376 .
2012-08-26 16:27:24 -07:00
Ben Darnell
1b38b58da8
Update websocket chat demo to work when not addressed as localhost.
...
Turn on draft76 support.
2012-01-21 17:39:37 -08:00
Ben Darnell
7f5d4de759
Avoid merging the entire read buffer for IOStream.read_until.
...
Among other things, this dramatically speeds up downloads of large
chunked files over a fast network with SimpleHTTPClient.
Fixes #425 .
2011-12-30 16:19:49 -08: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
8c3e46c491
Add option to print out generated template code in benchmark
2011-07-27 22:09:49 -07:00
Ben Darnell
3a7e30896b
Add a template benchmark, based on one in jinja2
2011-07-27 22:01:05 -07:00
Ben Darnell
c91df19763
Make websocket demo work on firefox 6 beta
2011-07-17 15:01:07 -07:00
Ben Darnell
845950af7d
Better benchmark script
2011-07-06 19:14:59 -07:00
Ben Darnell
26feb663aa
BACKWARDS-INCOMPATIBLE: turn on template autoescaping by default.
...
Disable autoescaping in demos that don't already use it.
2011-06-11 17:22:09 -07:00
Ben Darnell
696d9785a6
Demote s3server.py to a demo
2011-06-11 12:19:13 -07:00
Ben Darnell
bc0ac36775
Remove dead code
2011-06-05 16:20:37 -07:00
Ben Darnell
cdc1dbf589
Remove unused imports, add a few missing ones
2011-06-05 16:11:05 -07:00
Ben Darnell
5664bf0781
Add a Template UIModule, allowing templates to be called with keyword
...
arguments instead of inheriting the caller's namespace with {% include %}.
2011-06-05 15:41:25 -07:00
Ben Darnell
ce3e1dedaf
Introduce {% module %} syntax for calling UIModules.
...
Add linkify and xsrf_form_html as default modules.
2011-06-05 13:47:02 -07:00
Ben Darnell
6a85be4577
Add autoescape application setting and convert chatdemo to use it.
2011-05-30 19:03:54 -07:00
Ben Darnell
cad4a30879
Add simple test application for websockets
2011-05-17 23:14:02 -07:00
Ben Darnell
a287c203f1
Add keepalive support to benchmark, add other command-line args
2011-05-14 22:53:29 -07:00
Ben Darnell
e805590e69
Better check for missing messages in facebook demo
2011-04-24 23:16:31 -07:00
Ben Darnell
cd94d92b9b
Check to see if actions field is present in facebook demo
...
Closes #251 .
2011-04-24 23:15:08 -07:00
Ben Darnell
f43dd1414a
Update facebook demo to use the graph api instead of the older api.
2011-03-03 13:45:58 -08:00
Ben Darnell
e7ee4e1f73
Add logout link to authdemo for testing purposes.
2011-02-19 13:33:21 -08:00
Jon Parise
cce8218a03
tornado.httpserver is unused in this scope
2010-12-13 10:28:09 -08:00
Ben Darnell
ade3ce2e98
Add a simple HTTP benchmark
2010-12-10 17:03:21 -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
Paul Buchheit
f732f98063
add a linkify() function for converting text to html with link detection. Also changed xhtml_escape to not convert return value to utf8, since pages should be assembed in unicode and not utf8 encoded until they are ready to write().
2010-09-30 14:41:13 -07:00
Ben Darnell
40ce72c1c6
Replace all tabs with spaces.
2010-03-17 14:59:17 -07:00
Benjamin Golub
7e3ace8607
fb demo fix
2010-01-14 06:07:58 -05:00
Bret Taylor
11503326a6
Turn on auto-reloading when 'debug' setting is given
2009-09-17 19:47:32 -07:00
Benjamin Golub
016dee1e96
use correct module
2009-09-14 15:43:07 -04:00
Casey
c59cf2ab06
make logout link work
2009-09-14 11:08:27 -07:00