]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
12 years agodigest authentication 700/head
icaromedeiros [Fri, 22 Mar 2013 14:24:49 +0000 (11:24 -0300)] 
digest authentication

12 years agoFix draft76 websocket protocol; fix websocket demo for python 3.
Ben Darnell [Tue, 19 Mar 2013 00:52:23 +0000 (20:52 -0400)] 
Fix draft76 websocket protocol; fix websocket demo for python 3.

12 years agoDocument tornado.concurrent.Future.
Ben Darnell [Sun, 17 Mar 2013 17:42:12 +0000 (13:42 -0400)] 
Document tornado.concurrent.Future.

All internal links now point there instead of to concurrent.future.Futures.

12 years agoBump version number to 3.0b1
Ben Darnell [Sat, 16 Mar 2013 23:34:01 +0000 (19:34 -0400)] 
Bump version number to 3.0b1

12 years agoConvert auth demo to coroutines.
Ben Darnell [Sat, 16 Mar 2013 23:12:20 +0000 (19:12 -0400)] 
Convert auth demo to coroutines.

12 years agoMove gen from "utilities" to "asynchronous networking"
Ben Darnell [Sat, 16 Mar 2013 23:05:11 +0000 (19:05 -0400)] 
Move gen from "utilities" to "asynchronous networking"

12 years agoAdd/update docs for twisted, caresresolver, and util modules
Ben Darnell [Sat, 16 Mar 2013 22:52:07 +0000 (18:52 -0400)] 
Add/update docs for twisted, caresresolver, and util modules

12 years agoDoc updates: modules starting with W.
Ben Darnell [Sat, 16 Mar 2013 22:01:57 +0000 (18:01 -0400)] 
Doc updates: modules starting with W.

12 years agoSkip ThreadedResolver tests on pypy.
Ben Darnell [Sat, 16 Mar 2013 17:43:04 +0000 (13:43 -0400)] 
Skip ThreadedResolver tests on pypy.

There seem to be problems with thread/signal interactions.

12 years agoDoc updates, modules N-T.
Ben Darnell [Sat, 16 Mar 2013 17:13:58 +0000 (13:13 -0400)] 
Doc updates, modules N-T.

12 years agoDoc updates, modules H-L
Ben Darnell [Sat, 16 Mar 2013 15:50:31 +0000 (11:50 -0400)] 
Doc updates, modules H-L

12 years agoTurn on dangling-reference warning in sphinx for local builds.
Ben Darnell [Sat, 16 Mar 2013 14:34:00 +0000 (10:34 -0400)] 
Turn on dangling-reference warning in sphinx for local builds.

Reformat the HTTPFile docs where were causing odd reference errors.

12 years agoFix dangling references in old release notes.
Ben Darnell [Sat, 16 Mar 2013 05:41:50 +0000 (01:41 -0400)] 
Fix dangling references in old release notes.

12 years agoFix docstring for locale.load_translations.
Ben Darnell [Sat, 16 Mar 2013 05:25:22 +0000 (01:25 -0400)] 
Fix docstring for locale.load_translations.

When unicode strings started using the u() function, this string
was no longer considered a docstring.

12 years agoFix most of the rest of the dangling references.
Ben Darnell [Sat, 16 Mar 2013 05:21:53 +0000 (01:21 -0400)] 
Fix most of the rest of the dangling references.

12 years agoUpdate chat demo to be more exemplary.
Ben Darnell [Sat, 16 Mar 2013 04:52:04 +0000 (00:52 -0400)] 
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.

12 years agoRewrite gen docs to make coroutine the primary decorator.
Ben Darnell [Sat, 16 Mar 2013 04:18:46 +0000 (00:18 -0400)] 
Rewrite gen docs to make coroutine the primary decorator.

12 years agoFix dangling links in next.rst
Ben Darnell [Sat, 16 Mar 2013 03:29:42 +0000 (23:29 -0400)] 
Fix dangling links in next.rst

12 years agoFix dangling references in recently-revised docs.
Ben Darnell [Sat, 16 Mar 2013 03:09:49 +0000 (23:09 -0400)] 
Fix dangling references in recently-revised docs.

12 years agoTurn on intersphinx support for links to the standard library.
Ben Darnell [Sat, 16 Mar 2013 02:56:03 +0000 (22:56 -0400)] 
Turn on intersphinx support for links to the standard library.

12 years agoMinor doc updates for modules A-E
Ben Darnell [Sat, 16 Mar 2013 02:46:51 +0000 (22:46 -0400)] 
Minor doc updates for modules A-E

12 years agoConvert auth module code samples to use gen.coroutine.
Ben Darnell [Sat, 16 Mar 2013 02:24:13 +0000 (22:24 -0400)] 
Convert auth module code samples to use gen.coroutine.

12 years agoDoc updates for the auth module.
Ben Darnell [Sat, 16 Mar 2013 02:16:37 +0000 (22:16 -0400)] 
Doc updates for the auth module.

12 years agoRename WebSocketConnect to websocket_connect.
Ben Darnell [Fri, 15 Mar 2013 03:45:48 +0000 (23:45 -0400)] 
Rename WebSocketConnect to websocket_connect.

Add docs for undocumented functions and modules.

12 years agoAdd new methods to docs, found by sphinx coverage extension.
Ben Darnell [Fri, 15 Mar 2013 03:07:58 +0000 (23:07 -0400)] 
Add new methods to docs, found by sphinx coverage extension.

12 years agoFix bad merge
Ben Darnell [Fri, 15 Mar 2013 02:44:18 +0000 (22:44 -0400)] 
Fix bad merge

12 years agoMerge remote-tracking branch 'norman-labs/branch2.4'
Ben Darnell [Fri, 15 Mar 2013 01:36:34 +0000 (21:36 -0400)] 
Merge remote-tracking branch 'norman-labs/branch2.4'

Conflicts:
tornado/httputil.py

12 years agoMerge pull request #695 from evanj/master
bdarnell [Wed, 13 Mar 2013 01:54:24 +0000 (18:54 -0700)] 
Merge pull request #695 from evanj/master

httpserver: If no X-Scheme header, use the normal request value.

12 years agohttpserver: If no X-Scheme header, use the normal request value. 695/head
Evan Jones [Tue, 12 Mar 2013 20:23:52 +0000 (16:23 -0400)] 
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.

12 years agoRewrite text on index page.
Ben Darnell [Mon, 11 Mar 2013 03:04:06 +0000 (23:04 -0400)] 
Rewrite text on index page.

12 years agoBuild pdfs from documentation.rst, not index.rst
Ben Darnell [Mon, 11 Mar 2013 01:32:36 +0000 (21:32 -0400)] 
Build pdfs from documentation.rst, not index.rst

12 years agoJust skip all timing-sensitive tests on travis-ci.
Ben Darnell [Sun, 10 Mar 2013 23:11:59 +0000 (19:11 -0400)] 
Just skip all timing-sensitive tests on travis-ci.

12 years agoFix internal links for pdf output.
Ben Darnell [Sun, 10 Mar 2013 20:49:19 +0000 (16:49 -0400)] 
Fix internal links for pdf output.

12 years agoFix sphinx config in its new home, restore Makefile and custom css.
Ben Darnell [Sun, 10 Mar 2013 20:24:38 +0000 (16:24 -0400)] 
Fix sphinx config in its new home, restore Makefile and custom css.

12 years agoMove website/sphinx/ to docs/, remove rest of appengine website dir.
Ben Darnell [Sun, 10 Mar 2013 20:05:20 +0000 (16:05 -0400)] 
Move website/sphinx/ to docs/, remove rest of appengine website dir.

12 years agoMerge branch 'branch2.4'
Ben Darnell [Sun, 10 Mar 2013 20:00:58 +0000 (16:00 -0400)] 
Merge branch 'branch2.4'

12 years agoAdd favicon to sphinx config
Ben Darnell [Sun, 10 Mar 2013 19:58:05 +0000 (15:58 -0400)] 
Add favicon to sphinx config

12 years agoMerge branch 'branch2.4'
Ben Darnell [Sun, 10 Mar 2013 19:30:18 +0000 (15:30 -0400)] 
Merge branch 'branch2.4'

12 years agoAdd a max-width for body text to match the appengine site
Ben Darnell [Sun, 10 Mar 2013 19:08:43 +0000 (15:08 -0400)] 
Add a max-width for body text to match the appengine site

12 years agoGet the tricky parts of the sphinx conversion working.
Ben Darnell [Sun, 10 Mar 2013 19:04:06 +0000 (15:04 -0400)] 
Get the tricky parts of the sphinx conversion working.

12 years agoAdd a sphinx/rst version of the tornadoweb.org index page. (WIP)
Ben Darnell [Sun, 10 Mar 2013 18:25:06 +0000 (14:25 -0400)] 
Add a sphinx/rst version of the tornadoweb.org index page. (WIP)

12 years agosphinx: Set the html_theme variable explicitly.
Ben Darnell [Sat, 9 Mar 2013 17:30:36 +0000 (12:30 -0500)] 
sphinx: Set the html_theme variable explicitly.

This should let our custom css show on readthedocs.org.

12 years agoRelax a timing sensitive test that fails occasionally on travis-ci
Ben Darnell [Sun, 10 Mar 2013 03:05:00 +0000 (22:05 -0500)] 
Relax a timing sensitive test that fails occasionally on travis-ci

12 years agoUpdate release notes
Ben Darnell [Sun, 10 Mar 2013 02:43:11 +0000 (21:43 -0500)] 
Update release notes

12 years agosphinx: Set the html_theme variable explicitly.
Ben Darnell [Sat, 9 Mar 2013 17:30:36 +0000 (12:30 -0500)] 
sphinx: Set the html_theme variable explicitly.

This should let our custom css show on readthedocs.org.

12 years agotravis.yml: skip caresresolver test on pypy.
Ben Darnell [Sat, 9 Mar 2013 02:29:13 +0000 (21:29 -0500)] 
travis.yml: skip caresresolver test on pypy.

12 years agoFix the inevitable typos in .travis.yml.
Ben Darnell [Sat, 9 Mar 2013 00:04:08 +0000 (19:04 -0500)] 
Fix the inevitable typos in .travis.yml.

12 years agoFix TwistedIOLoop on python 2.6.
Ben Darnell [Sat, 9 Mar 2013 00:03:49 +0000 (19:03 -0500)] 
Fix TwistedIOLoop on python 2.6.

12 years agoRewrite travis.yml to make it simpler and more comprehensive.
Ben Darnell [Fri, 8 Mar 2013 23:26:36 +0000 (18:26 -0500)] 
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)

12 years agoOn python 3, json_encode no longer supports byte strings as input.
Ben Darnell [Fri, 8 Mar 2013 22:03:38 +0000 (17:03 -0500)] 
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.

12 years agoUse native strings instead of byte strings for oauth responses.
Ben Darnell [Fri, 8 Mar 2013 21:47:30 +0000 (16:47 -0500)] 
Use native strings instead of byte strings for oauth responses.

12 years agoCapture the stack context of gen callbacks as they are generated.
Ben Darnell [Fri, 8 Mar 2013 21:18:22 +0000 (16:18 -0500)] 
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.

12 years agoUse _try_inline_read instead of _read_from_buffer in read_until_close.
Ben Darnell [Wed, 6 Mar 2013 02:53:40 +0000 (21:53 -0500)] 
Use _try_inline_read instead of _read_from_buffer in read_until_close.

Closes #686.

12 years agoUpdate and expand travis.yml.
Ben Darnell [Mon, 4 Mar 2013 05:00:59 +0000 (00:00 -0500)] 
Update and expand travis.yml.

This should cover everything from tox.ini

12 years agoRe-apply autopep8.
Ben Darnell [Mon, 4 Mar 2013 04:09:57 +0000 (23:09 -0500)] 
Re-apply autopep8.

12 years agoUpdate import_test.
Ben Darnell [Mon, 4 Mar 2013 04:07:44 +0000 (23:07 -0500)] 
Update import_test.

(although I think autoreload is the last module left with no real test
coverage)

12 years agoPyflakes cleanups.
Ben Darnell [Mon, 4 Mar 2013 04:04:23 +0000 (23:04 -0500)] 
Pyflakes cleanups.

12 years agoFix type check that pep8 complains about.
Ben Darnell [Mon, 4 Mar 2013 03:54:38 +0000 (22:54 -0500)] 
Fix type check that pep8 complains about.

12 years agoOrganize release notes and add highlights section.
Ben Darnell [Mon, 4 Mar 2013 03:47:30 +0000 (22:47 -0500)] 
Organize release notes and add highlights section.

12 years agoIntroduce TracebackFuture and use it where applicable.
Ben Darnell [Mon, 4 Mar 2013 01:47:15 +0000 (20:47 -0500)] 
Introduce TracebackFuture and use it where applicable.

This allows for better tracebacks when using Futures on Python 2.

12 years agoWhen @return_future's callback is run with no args, don't pass an arg to client callback.
Ben Darnell [Mon, 4 Mar 2013 01:14:22 +0000 (20:14 -0500)] 
When @return_future's callback is run with no args, don't pass an arg to client callback.

12 years agoAllow the callback in @return_future to be run with no arguments.
Ben Darnell [Mon, 4 Mar 2013 00:29:39 +0000 (19:29 -0500)] 
Allow the callback in @return_future to be run with no arguments.

12 years agoBump version to 2.4.post4
Ben Darnell [Sun, 3 Mar 2013 23:22:52 +0000 (18:22 -0500)] 
Bump version to 2.4.post4

12 years agoreturn_future and friends now pass the result, not the Future, to the callback.
Ben Darnell [Sun, 3 Mar 2013 23:17:29 +0000 (18:17 -0500)] 
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.

12 years agoUse autoescape in websocket chat demo.
Ben Darnell [Sun, 3 Mar 2013 17:23:28 +0000 (12:23 -0500)] 
Use autoescape in websocket chat demo.

12 years agoAutoescaping is now the default, so remove the explicit setting in chatdemo.
Ben Darnell [Sun, 3 Mar 2013 17:18:34 +0000 (12:18 -0500)] 
Autoescaping is now the default, so remove the explicit setting in chatdemo.

12 years agoUse distinct cookie names across all the demo apps.
Ben Darnell [Sun, 3 Mar 2013 17:16:03 +0000 (12:16 -0500)] 
Use distinct cookie names across all the demo apps.

12 years agoUse autoescape in blog demo.
Ben Darnell [Sun, 3 Mar 2013 17:09:29 +0000 (12:09 -0500)] 
Use autoescape in blog demo.

12 years agoRemove embedded copy of markdown.py from blog demo.
Ben Darnell [Sun, 3 Mar 2013 16:56:47 +0000 (11:56 -0500)] 
Remove embedded copy of markdown.py from blog demo.

12 years agoUse autoescape in appengine blog demo.
Ben Darnell [Sun, 3 Mar 2013 16:54:35 +0000 (11:54 -0500)] 
Use autoescape in appengine blog demo.

12 years agoRemove markdown support from app engine blog demo.
Ben Darnell [Sun, 3 Mar 2013 16:16:07 +0000 (11:16 -0500)] 
Remove markdown support from app engine blog demo.

12 years agoModernize app engine demo: py27, non-CGI interface, get_template_namespace.
Ben Darnell [Sun, 3 Mar 2013 16:08:25 +0000 (11:08 -0500)] 
Modernize app engine demo: py27, non-CGI interface, get_template_namespace.

12 years agoUpgrade requirement packages.
Ben Darnell [Sun, 3 Mar 2013 00:37:02 +0000 (19:37 -0500)] 
Upgrade requirement packages.

Upgrades are available for tox and virtualenv, but don't work for me
because of https://github.com/pypa/virtualenv/issues/366 (to be fixed
in virtualenv 1.9).

12 years agoRelease note updates
Ben Darnell [Sun, 3 Mar 2013 00:29:04 +0000 (19:29 -0500)] 
Release note updates

12 years agoAll functions that take an IOLoop default to current() instead of instance().
Ben Darnell [Sun, 3 Mar 2013 00:08:22 +0000 (19:08 -0500)] 
All functions that take an IOLoop default to current() instead of instance().

This means among other things that it's no longer necessary to pass
IOLoops explicitly in tests.

12 years agoAdd IOLoop.run_sync convenience method.
Ben Darnell [Sat, 2 Mar 2013 23:58:02 +0000 (18:58 -0500)] 
Add IOLoop.run_sync convenience method.

12 years agoTest the IOLoop.current method and add it to TwistedIOLoop.
Ben Darnell [Sat, 2 Mar 2013 23:46:07 +0000 (18:46 -0500)] 
Test the IOLoop.current method and add it to TwistedIOLoop.

12 years agoMake DummyFuture class private.
Ben Darnell [Sat, 2 Mar 2013 22:27:02 +0000 (17:27 -0500)] 
Make DummyFuture class private.

It's now only exposed and used when concurrent.futures is not available.

12 years agoFix twisted version check.
Ben Darnell [Sat, 2 Mar 2013 19:55:10 +0000 (14:55 -0500)] 
Fix twisted version check.

12 years agoMerge pull request #686 from omribahumi/master
bdarnell [Sat, 2 Mar 2013 19:48:53 +0000 (11:48 -0800)] 
Merge pull request #686 from omribahumi/master

Flushing the buffer when calling IOStream.read_until_close()

12 years agoFix resolver test script.
Ben Darnell [Sat, 2 Mar 2013 19:45:43 +0000 (14:45 -0500)] 
Fix resolver test script.

12 years agoConvert resolvers to @gen.coroutine.
Ben Darnell [Sat, 2 Mar 2013 19:30:42 +0000 (14:30 -0500)] 
Convert resolvers to @gen.coroutine.

This adds a requirement that there be a "current" IOLoop, which introduced
a few ripples.

12 years agoTest twisted and cares resolvers in netutil_test.
Ben Darnell [Sat, 2 Mar 2013 19:00:53 +0000 (14:00 -0500)] 
Test twisted and cares resolvers in netutil_test.

12 years agoConvert auth methods from return_future plus gen.engine to gen.coroutine.
Ben Darnell [Sat, 2 Mar 2013 18:55:35 +0000 (13:55 -0500)] 
Convert auth methods from return_future plus gen.engine to gen.coroutine.

12 years agoAdd @gen.coroutine and gen.Return for future-based (and py33-style) coroutines.
Ben Darnell [Sat, 2 Mar 2013 18:29:48 +0000 (13:29 -0500)] 
Add @gen.coroutine and gen.Return for future-based (and py33-style) coroutines.

12 years agoPython3 compatibility for test_streaming_callback_with_data_in_buffer 686/head
Omri Bahumi [Thu, 28 Feb 2013 18:18:22 +0000 (20:18 +0200)] 
Python3 compatibility for test_streaming_callback_with_data_in_buffer

12 years agoAdded test_streaming_callback_with_data_in_buffer to iostream_test.py
Omri Bahumi [Thu, 28 Feb 2013 17:49:50 +0000 (19:49 +0200)] 
Added test_streaming_callback_with_data_in_buffer to iostream_test.py

12 years agoFlushing the buffer when calling IOStream.read_until_close()
Omri Bahumi [Wed, 27 Feb 2013 22:11:32 +0000 (00:11 +0200)] 
Flushing the buffer when calling IOStream.read_until_close()

Ran into this when calling IOStream.read_until_close() after calling
IOStream.read_until("\r\n"), leaving data in the buffer.

12 years agoAccumulated release note updates.
Ben Darnell [Wed, 27 Feb 2013 03:53:46 +0000 (22:53 -0500)] 
Accumulated release note updates.

12 years agoSimplify the Resolver interface.
Ben Darnell [Sun, 24 Feb 2013 19:19:23 +0000 (14:19 -0500)] 
Simplify the Resolver interface.

Most callers do not need the full generality of getaddrinfo, and
most alternative resolver implementations cannot provide it.

12 years agoAdd a resolver test script for external queries that cannot be unittested.
Ben Darnell [Sun, 24 Feb 2013 17:43:06 +0000 (12:43 -0500)] 
Add a resolver test script for external queries that cannot be unittested.

Note an issue with CaresResolver (it cannot resolve www.dropbox.com when
family==AF_UNSPEC)

12 years agoAdd a c-ares-based resolver implementation.
Ben Darnell [Sun, 24 Feb 2013 17:25:04 +0000 (12:25 -0500)] 
Add a c-ares-based resolver implementation.

12 years agoMove HTTPServer's valid_ip function to netutil.
Ben Darnell [Sun, 24 Feb 2013 16:47:30 +0000 (11:47 -0500)] 
Move HTTPServer's valid_ip function to netutil.

12 years agoAdd a test that runs TwistedIOLoop on top of TornadoReactor.
Ben Darnell [Sat, 23 Feb 2013 23:46:08 +0000 (18:46 -0500)] 
Add a test that runs TwistedIOLoop on top of TornadoReactor.

This exposed a few more small bugs.

12 years agoAdd TwistedResolver for non-threaded async DNS resolution.
Ben Darnell [Sat, 23 Feb 2013 18:15:04 +0000 (13:15 -0500)] 
Add TwistedResolver for non-threaded async DNS resolution.

12 years agoIf a @return_future function raises immediately, don't run the callback.
Ben Darnell [Sat, 23 Feb 2013 17:53:04 +0000 (12:53 -0500)] 
If a @return_future function raises immediately, don't run the callback.

12 years agostack_context.wrap() the callback passed in to a @return_future function.
Ben Darnell [Sat, 23 Feb 2013 15:59:13 +0000 (10:59 -0500)] 
stack_context.wrap() the callback passed in to a @return_future function.

12 years agoMove fallback exception raising in AsyncTestCase from run() to tearDown().
Ben Darnell [Sat, 23 Feb 2013 15:53:31 +0000 (10:53 -0500)] 
Move fallback exception raising in AsyncTestCase from run() to tearDown().

This allows the exception to be reported as a test failure instead of
making the test run blow up.

12 years agoAdd a test case for the synchronous HTTPClient.
Ben Darnell [Sat, 23 Feb 2013 15:31:53 +0000 (10:31 -0500)] 
Add a test case for the synchronous HTTPClient.

12 years agoClean up more timeouts when shutting down HTTP clients or finishing tests.
Ben Darnell [Thu, 21 Feb 2013 03:03:28 +0000 (22:03 -0500)] 
Clean up more timeouts when shutting down HTTP clients or finishing tests.