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
53fc8fd3de
Rewrite gen docs to make coroutine the primary decorator.
2013-03-16 00:18:46 -04:00
Ben Darnell
9c1b189f5d
Fix dangling links in next.rst
2013-03-15 23:29:42 -04:00
Ben Darnell
b166bdf442
Fix dangling references in recently-revised docs.
2013-03-15 23:14:48 -04:00
Ben Darnell
0984b2cf09
Turn on intersphinx support for links to the standard library.
2013-03-15 22:56:03 -04:00
Ben Darnell
f7a2fad709
Minor doc updates for modules A-E
2013-03-15 22:50:19 -04:00
Ben Darnell
d577bc518d
Convert auth module code samples to use gen.coroutine.
2013-03-15 22:24:13 -04:00
Ben Darnell
950d7d3837
Doc updates for the auth module.
2013-03-15 22:16:37 -04:00
Ben Darnell
059f0e8dbe
Rename WebSocketConnect to websocket_connect.
...
Add docs for undocumented functions and modules.
2013-03-14 23:45:48 -04:00
Ben Darnell
6e3c288eb0
Add new methods to docs, found by sphinx coverage extension.
2013-03-14 23:07:58 -04:00
Ben Darnell
ebac4c0dfa
Fix bad merge
2013-03-14 22:44:18 -04:00
Ben Darnell
ae166d7219
Merge remote-tracking branch 'norman-labs/branch2.4'
...
Conflicts:
tornado/httputil.py
2013-03-14 21:42:49 -04:00
bdarnell
330d8ecf20
Merge pull request #695 from evanj/master
...
httpserver: If no X-Scheme header, use the normal request value.
2013-03-12 18:54:24 -07:00
Evan Jones
081af7c4d3
httpserver: If no X-Scheme header, use the normal request value.
...
Previously, if xheaders is True and there are no X headers passed (e.g. when
developing locally), scheme was always "http". This makes in "http" or
"https", based on what was actually used for the request.
Add tests for the X-Scheme and X-Forwarded-Proto headers.
2013-03-12 16:23:52 -04:00
Ben Darnell
16932d8cff
Rewrite text on index page.
2013-03-10 23:04:06 -04:00
Ben Darnell
2275692847
Build pdfs from documentation.rst, not index.rst
2013-03-10 21:32:36 -04:00
Ben Darnell
abc5780a06
Just skip all timing-sensitive tests on travis-ci.
2013-03-10 19:11:59 -04:00
Ben Darnell
d2a9b85de4
Fix internal links for pdf output.
2013-03-10 16:49:19 -04:00
Ben Darnell
4ea711af79
Fix sphinx config in its new home, restore Makefile and custom css.
2013-03-10 16:24:38 -04:00
Ben Darnell
5872959a75
Move website/sphinx/ to docs/, remove rest of appengine website dir.
2013-03-10 16:05:20 -04:00
Ben Darnell
4b182cee6b
Merge branch 'branch2.4'
2013-03-10 16:00:58 -04:00
Ben Darnell
7ce6484236
Add favicon to sphinx config
2013-03-10 15:58:05 -04:00
Ben Darnell
95c2ff87ca
Merge branch 'branch2.4'
2013-03-10 15:30:18 -04:00
Ben Darnell
e49ba0c5b7
Add a max-width for body text to match the appengine site
2013-03-10 15:08:43 -04:00
Ben Darnell
0b9e5ce9c8
Get the tricky parts of the sphinx conversion working.
2013-03-10 15:04:06 -04:00
Ben Darnell
11af37659a
Add a sphinx/rst version of the tornadoweb.org index page. (WIP)
2013-03-10 14:25:06 -04:00
Ben Darnell
73ed33ed96
sphinx: Set the html_theme variable explicitly.
...
This should let our custom css show on readthedocs.org.
2013-03-09 22:11:39 -05:00
Ben Darnell
9ec8176194
Relax a timing sensitive test that fails occasionally on travis-ci
2013-03-09 22:05:00 -05:00
Ben Darnell
76a4b1f232
Update release notes
2013-03-09 21:43:11 -05:00
Ben Darnell
fb74354593
sphinx: Set the html_theme variable explicitly.
...
This should let our custom css show on readthedocs.org.
2013-03-09 12:30:36 -05:00
Ben Darnell
1b578ebda6
travis.yml: skip caresresolver test on pypy.
2013-03-08 21:29:13 -05:00
Ben Darnell
9e66435e86
Fix the inevitable typos in .travis.yml.
2013-03-08 19:04:08 -05:00
Ben Darnell
7431ffe1a0
Fix TwistedIOLoop on python 2.6.
2013-03-08 19:03:49 -05:00
Ben Darnell
20afb40419
Rewrite travis.yml to make it simpler and more comprehensive.
...
Unlike tox, travis never reuses virtualenvs so setup/install time dominates.
Each test configuration only takes a few seconds once everything is
installed, so it's better to run fewer environments with lots of tests
in each.
This reduces the configuration to 10 environments (two for each python version,
with and without dependencies installed). All tests are run in every
environment where they can run (unlike the tox config, which has many
variants that only run under py27)
2013-03-08 18:26:36 -05:00
Ben Darnell
8a198cc403
On python 3, json_encode no longer supports byte strings as input.
...
This matches the behavior of the underlying json library.
recursive_unicode was more expensive than the actual json encoding for
complex structures, and was useless on python 2.
2013-03-08 17:03:38 -05:00
Ben Darnell
e72eee12d4
Use native strings instead of byte strings for oauth responses.
2013-03-08 16:47:30 -05:00
Ben Darnell
14531ee358
Capture the stack context of gen callbacks as they are generated.
...
This guards against functions that add their own stack context
without wrapping their callbacks.
2013-03-08 16:18:22 -05:00
Ben Darnell
73c0aee4a5
Use _try_inline_read instead of _read_from_buffer in read_until_close.
...
Closes #686 .
2013-03-05 21:53:40 -05:00
Ben Darnell
dbff2b5224
Update and expand travis.yml.
...
This should cover everything from tox.ini
2013-03-04 00:00:59 -05:00
Ben Darnell
955085492c
Re-apply autopep8.
2013-03-03 23:09:57 -05:00
Ben Darnell
680c440215
Update import_test.
...
(although I think autoreload is the last module left with no real test
coverage)
2013-03-03 23:07:44 -05:00
Ben Darnell
4421506012
Pyflakes cleanups.
2013-03-03 23:04:23 -05:00
Ben Darnell
9364e5e1c3
Fix type check that pep8 complains about.
2013-03-03 22:54:38 -05:00
Ben Darnell
7f2bcfe831
Organize release notes and add highlights section.
2013-03-03 22:47:30 -05:00
Ben Darnell
b8063e480c
Introduce TracebackFuture and use it where applicable.
...
This allows for better tracebacks when using Futures on Python 2.
2013-03-03 20:47:15 -05:00
Ben Darnell
e9e003eba8
When @return_future's callback is run with no args, don't pass an arg to client callback.
2013-03-03 20:14:22 -05:00
Ben Darnell
94a5a40272
Allow the callback in @return_future to be run with no arguments.
2013-03-03 19:29:39 -05:00
Ben Darnell
a522a2f1dc
Bump version to 2.4.post4
2013-03-03 18:22:52 -05:00
Ben Darnell
e97f9afef3
return_future and friends now pass the result, not the Future, to the callback.
...
Functions and decorators that take an optional callback and return
a future (return_future, gen.concurrent, and run_executor) no longer pass
the Future object to the callback. This results in somewhat less flexible
error handling, but is more consistent with prevailing practice without
Futures.
2013-03-03 18:17:29 -05:00
Ben Darnell
bc4917b65b
Use autoescape in websocket chat demo.
2013-03-03 12:23:28 -05:00