]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
14 years agoSet version number to 2.1 v2.1.0
Ben Darnell [Wed, 21 Sep 2011 04:21:52 +0000 (21:21 -0700)] 
Set version number to 2.1

14 years agoMove next.rst to v2.1.0.rst
Ben Darnell [Wed, 21 Sep 2011 04:21:07 +0000 (21:21 -0700)] 
Move next.rst to v2.1.0.rst

14 years agoMerge pull request #363 from daharon/master
bdarnell [Mon, 19 Sep 2011 17:45:37 +0000 (10:45 -0700)] 
Merge pull request #363 from daharon/master

Make HTTPHeaders.__contains__() case-insensitive, like the rest of the object

14 years agoMake HTTPHeaders.__contains__() case-insensitive, like the rest of the object. 363/head
Daniel Aharon [Mon, 19 Sep 2011 16:32:27 +0000 (09:32 -0700)] 
Make HTTPHeaders.__contains__() case-insensitive, like the rest of the object.

14 years agoAdd a test for the bug fixed in commit e811959
Ben Darnell [Sun, 18 Sep 2011 23:44:32 +0000 (16:44 -0700)] 
Add a test for the bug fixed in commit e811959

14 years agoFix the handling of messages of length 126 in the draft-10 Websocket implementation.
Florian Diebold [Sat, 17 Sep 2011 22:17:47 +0000 (00:17 +0200)] 
Fix the handling of messages of length 126 in the draft-10 Websocket implementation.

14 years agoFix the IOStream close callback not getting called if there are pending callbacks.
Florian Diebold [Sun, 4 Sep 2011 16:47:01 +0000 (18:47 +0200)] 
Fix the IOStream close callback not getting called if there are pending callbacks.

_maybe_add_error_listener only does anything if _state is None.

14 years agoClose leaking listener socket in tests
Ben Darnell [Sun, 18 Sep 2011 05:00:00 +0000 (22:00 -0700)] 
Close leaking listener socket in tests

14 years agoMore release note updates
Ben Darnell [Sat, 17 Sep 2011 20:14:11 +0000 (13:14 -0700)] 
More release note updates

14 years agoUpdate ca-certs file to remove Diginotar
Ben Darnell [Thu, 15 Sep 2011 18:22:22 +0000 (11:22 -0700)] 
Update ca-certs file to remove Diginotar

14 years agoPut overview documentation back in HTTPServer docstring, and other doc
Ben Darnell [Thu, 15 Sep 2011 05:30:11 +0000 (22:30 -0700)] 
Put overview documentation back in HTTPServer docstring, and other doc
and import cleanups

14 years agoMerge remote-tracking branch 'alekstorm/tcpserver' into merge
Ben Darnell [Thu, 15 Sep 2011 04:22:32 +0000 (21:22 -0700)] 
Merge remote-tracking branch 'alekstorm/tcpserver' into merge

14 years agoAdd {# ... #} construct to comment out entire sections 359/head
Alek Storm [Tue, 13 Sep 2011 16:20:19 +0000 (16:20 +0000)] 
Add {# ... #} construct to comment out entire sections

14 years agoLog "stacktrace" of templace source lines when an exception is raised for more conven...
Alek Storm [Mon, 12 Sep 2011 18:18:35 +0000 (18:18 +0000)] 
Log "stacktrace" of templace source lines when an exception is raised for more convenient debugging

14 years agoRemove doc warnings about tornado.auth in python3
Ben Darnell [Mon, 12 Sep 2011 06:16:08 +0000 (23:16 -0700)] 
Remove doc warnings about tornado.auth in python3

14 years agoAdd crude tests for the auth module, and fix python3 issues with oauth1
Ben Darnell [Mon, 12 Sep 2011 05:50:13 +0000 (22:50 -0700)] 
Add crude tests for the auth module, and fix python3 issues with oauth1

14 years agoMove `TCPServer` to `netutil`, change `handle_stream` callback to overridden method... 353/head
Alek Storm [Mon, 12 Sep 2011 05:32:43 +0000 (05:32 +0000)] 
Move `TCPServer` to `netutil`, change `handle_stream` callback to overridden method hook, move IP address hack for unix domain sockets to `HTTPConnection`

14 years agoMerge branch 'branch2.0'
Ben Darnell [Mon, 12 Sep 2011 03:42:22 +0000 (20:42 -0700)] 
Merge branch 'branch2.0'

14 years agoAdd support for callbacks that take more than a single positional argument.
Ben Darnell [Sun, 11 Sep 2011 22:50:34 +0000 (15:50 -0700)] 
Add support for callbacks that take more than a single positional argument.

Closes #351.

14 years agoAdd support for lists of YieldPoints in the gen framework.
Ben Darnell [Sun, 11 Sep 2011 22:09:25 +0000 (15:09 -0700)] 
Add support for lists of YieldPoints in the gen framework.

14 years agoMerge pull request #356 from alekstorm/files
bdarnell [Sat, 10 Sep 2011 23:38:21 +0000 (16:38 -0700)] 
Merge pull request #356 from alekstorm/files

Convert dictionaries representing HTTP files to HTTPFile objects

14 years agoConvert dictionaries representing HTTP files to HTTPFile objects, with dictionary... 356/head
Alek Storm [Sat, 10 Sep 2011 23:27:40 +0000 (23:27 +0000)] 
Convert dictionaries representing HTTP files to HTTPFile objects, with dictionary access for attributes retained for backwards compatibility

14 years agoMove web._O to util.ObjectDict
Alek Storm [Sat, 10 Sep 2011 23:25:10 +0000 (23:25 +0000)] 
Move web._O to util.ObjectDict

14 years agoAdd reference docs for all template directives.
Ben Darnell [Sat, 10 Sep 2011 22:10:31 +0000 (15:10 -0700)] 
Add reference docs for all template directives.

Closes #355.

14 years agoReorder tox environments so the most important/likely-to-fail ones run first.
Ben Darnell [Sat, 10 Sep 2011 21:18:51 +0000 (14:18 -0700)] 
Reorder tox environments so the most important/likely-to-fail ones run first.

14 years agoAdd on_connection_close hook to chat demo to clean up after closed connections.
Ben Darnell [Fri, 9 Sep 2011 05:51:45 +0000 (22:51 -0700)] 
Add on_connection_close hook to chat demo to clean up after closed connections.

Closes #354.

14 years agoExtract cookie-signing methods from RequestHandler so they can be used
Ben Darnell [Fri, 9 Sep 2011 05:45:30 +0000 (22:45 -0700)] 
Extract cookie-signing methods from RequestHandler so they can be used
outside the web stack.

Closes #339.

14 years agoAdd streaming_callback to IOStream.read_bytes and read_until_close.
Ben Darnell [Fri, 9 Sep 2011 05:07:32 +0000 (22:07 -0700)] 
Add streaming_callback to IOStream.read_bytes and read_until_close.

Closes #300.

14 years agoFactor HTTP-specific code into HTTPServer subclass of TCPServer
Alek Storm [Thu, 8 Sep 2011 00:09:52 +0000 (00:09 +0000)] 
Factor HTTP-specific code into HTTPServer subclass of TCPServer

14 years agoRemove unused variables (discovered by pyflakes)
Ben Darnell [Mon, 5 Sep 2011 21:00:51 +0000 (14:00 -0700)] 
Remove unused variables (discovered by pyflakes)

14 years agoImprove exception handling for gen module.
Ben Darnell [Mon, 5 Sep 2011 20:23:57 +0000 (13:23 -0700)] 
Improve exception handling for gen module.

14 years agoAllow any sequence in gen.WaitAll, not just lists.
Ben Darnell [Mon, 5 Sep 2011 19:15:50 +0000 (12:15 -0700)] 
Allow any sequence in gen.WaitAll, not just lists.

14 years agoAdd test for 100-continue functionality, and fix it on python 3
Ben Darnell [Mon, 5 Sep 2011 19:12:07 +0000 (12:12 -0700)] 
Add test for 100-continue functionality, and fix it on python 3

Closes #350.

14 years agoDocument tornado.platform.twisted, and rename ioloop parameter to io_loop
Ben Darnell [Mon, 5 Sep 2011 01:00:06 +0000 (18:00 -0700)] 
Document tornado.platform.twisted, and rename ioloop parameter to io_loop
for consistency with other modules.

14 years agoReorganize release notes
Ben Darnell [Mon, 5 Sep 2011 00:47:39 +0000 (17:47 -0700)] 
Reorganize release notes

14 years agoAccumulated release note updates.
Ben Darnell [Sun, 4 Sep 2011 22:51:25 +0000 (15:51 -0700)] 
Accumulated release note updates.

14 years agoUpdate docs with new methods
Ben Darnell [Sun, 4 Sep 2011 22:39:55 +0000 (15:39 -0700)] 
Update docs with new methods

14 years agoFix error in docs
Ben Darnell [Sun, 4 Sep 2011 19:52:43 +0000 (12:52 -0700)] 
Fix error in docs

14 years agoAdd gen.WaitAll
Ben Darnell [Sun, 4 Sep 2011 18:26:36 +0000 (11:26 -0700)] 
Add gen.WaitAll

14 years agoAdd tornado.gen module for simpler generator-based async code.
Ben Darnell [Sun, 4 Sep 2011 07:59:57 +0000 (00:59 -0700)] 
Add tornado.gen module for simpler generator-based async code.

14 years agoVarious minor test changes for windows.
Ben Darnell [Sat, 3 Sep 2011 20:27:28 +0000 (13:27 -0700)] 
Various minor test changes for windows.

14 years agoRemove test_connect_timeout, which was only passing before due to a bug
Ben Darnell [Sat, 3 Sep 2011 19:20:43 +0000 (12:20 -0700)] 
Remove test_connect_timeout, which was only passing before due to a bug
in the timeout implementation.

14 years agoMerge pull request #349 from milkinc/master
bdarnell [Wed, 31 Aug 2011 03:27:19 +0000 (20:27 -0700)] 
Merge pull request #349 from milkinc/master

Correct on_connect timeout for simple http client

14 years agoMerge pull request #347 from ContextLogic/optiongroup
bdarnell [Wed, 31 Aug 2011 03:26:04 +0000 (20:26 -0700)] 
Merge pull request #347 from ContextLogic/optiongroup

'group' parameter in options.define()

14 years agoCorrected on_connect timeout for simplehttpclient 349/head
Jeff Hodsdon [Wed, 31 Aug 2011 02:05:55 +0000 (19:05 -0700)] 
Corrected on_connect timeout for simplehttpclient

14 years agoIn define(), added option to define our own option group, which is used in print_help(). 347/head
Jeeyoung Kim [Tue, 30 Aug 2011 21:47:34 +0000 (14:47 -0700)] 
In define(), added option to define our own option group, which is used in print_help().

14 years agoMerge pull request #346 from mikejthompson/master
bdarnell [Tue, 30 Aug 2011 05:14:54 +0000 (22:14 -0700)] 
Merge pull request #346 from mikejthompson/master

adding 'cookies' property to wsgi.HTTPRequest

14 years agoadd 'cookies' property to wsgi.HTTPRequest 346/head
Mike Thompson [Tue, 30 Aug 2011 04:18:35 +0000 (21:18 -0700)] 
add 'cookies' property to wsgi.HTTPRequest

14 years agoWatch the main module for tornado.autoreload's -m mode
Ben Darnell [Mon, 29 Aug 2011 01:42:35 +0000 (18:42 -0700)] 
Watch the main module for tornado.autoreload's -m mode

14 years agoMerge commit '864044' into merge 273/head
Ben Darnell [Sun, 28 Aug 2011 06:59:48 +0000 (23:59 -0700)] 
Merge commit '864044' into merge

14 years agoFix typos (argh!). #319
Maciej MaÅ‚ecki [Mon, 22 Aug 2011 22:24:36 +0000 (00:24 +0200)] 
Fix typos (argh!). #319

14 years agoUse subprocess.Popen on Windows, fixes #319
Maciej MaÅ‚ecki [Mon, 22 Aug 2011 13:01:01 +0000 (15:01 +0200)] 
Use subprocess.Popen on Windows, fixes #319

14 years agoAdd a version of database.Connection.execute that returns the rowcount.
Ben Darnell [Sun, 28 Aug 2011 06:24:56 +0000 (23:24 -0700)] 
Add a version of database.Connection.execute that returns the rowcount.

Closes #333.

14 years agoMerge remote-tracking branch 'alekstorm/static_args' into merge
Ben Darnell [Sun, 28 Aug 2011 06:08:48 +0000 (23:08 -0700)] 
Merge remote-tracking branch 'alekstorm/static_args' into merge

14 years agoMerge branch 'master' into merge
Ben Darnell [Sun, 28 Aug 2011 06:04:26 +0000 (23:04 -0700)] 
Merge branch 'master' into merge

14 years agoReinstate RequestHandler.cookies property
Ben Darnell [Sun, 28 Aug 2011 06:02:57 +0000 (23:02 -0700)] 
Reinstate RequestHandler.cookies property

14 years agoimplement request_time in simplehttp_client (and tests) 307/head
Jehiah Czebotar [Sun, 28 Aug 2011 00:51:45 +0000 (20:51 -0400)] 
implement request_time in simplehttp_client (and tests)

14 years agoMerge pull request #344 from akrymski/master
bdarnell [Sat, 27 Aug 2011 19:31:17 +0000 (12:31 -0700)] 
Merge pull request #344 from akrymski/master

javascript not being gzipped

14 years agoapplication/json was missing from GZIP CONTENT_TYPES 344/head
Artemi Krymski [Sat, 27 Aug 2011 15:02:00 +0000 (16:02 +0100)] 
application/json was missing from GZIP CONTENT_TYPES

14 years agoImprove template execution performance. 343/head
Wojciech Polak [Thu, 25 Aug 2011 15:29:32 +0000 (17:29 +0200)] 
Improve template execution performance.

14 years agoMerge pull request #342 from davidwilemski/master
bdarnell [Wed, 24 Aug 2011 03:24:28 +0000 (20:24 -0700)] 
Merge pull request #342 from davidwilemski/master

Template documentation fix

14 years agoFixed typo in template documentation 342/head
David Wilemski [Wed, 24 Aug 2011 03:14:08 +0000 (23:14 -0400)] 
Fixed typo in template documentation

14 years agoSupport max_age as an alias for max-age in set_cookie(**kwargs)
Ben Darnell [Tue, 23 Aug 2011 17:38:11 +0000 (10:38 -0700)] 
Support max_age as an alias for max-age in set_cookie(**kwargs)

14 years agotimedelta.total_seconds() is new in python2.7, so do the math ourselves.
Ben Darnell [Tue, 23 Aug 2011 05:45:27 +0000 (22:45 -0700)] 
timedelta.total_seconds() is new in python2.7, so do the math ourselves.

14 years agoImplemented read_until_regex in tornado. This is similar to read_until(), except...
Jeeyoung Kim [Mon, 22 Aug 2011 22:14:39 +0000 (15:14 -0700)] 
Implemented read_until_regex in tornado. This is similar to read_until(), except it looks for a specific delimiter. This function is used to parse the header of the website, where it is delimited by '\n' only (like http://news.ycombinator.com/rss)

14 years agoMerge pull request #340 from alekstorm/template_namespace
bdarnell [Sun, 21 Aug 2011 23:54:43 +0000 (16:54 -0700)] 
Merge pull request #340 from alekstorm/template_namespace

Add 'namespace' parameter to template.BaseLoader constructor

14 years agoWhen following redirects, release connection resources immediately
Ben Darnell [Sun, 21 Aug 2011 22:53:00 +0000 (15:53 -0700)] 
When following redirects, release connection resources immediately

14 years agoAdd 'namespace' parameter to template.BaseLoader constructor 340/head
Alek Storm [Sat, 20 Aug 2011 15:20:16 +0000 (15:20 +0000)] 
Add 'namespace' parameter to template.BaseLoader constructor

Specifies custom entries in the global namespace of loaded templates.

14 years agoMove 'cookies' property from RequestHandler to HTTPRequest 336/head
Alek Storm [Thu, 18 Aug 2011 06:01:50 +0000 (06:01 +0000)] 
Move 'cookies' property from RequestHandler to HTTPRequest

14 years agoAdd 'static_handler_args' application setting to pass extra keyword arguments 335/head
Alek Storm [Wed, 17 Aug 2011 00:19:40 +0000 (00:19 +0000)] 
Add 'static_handler_args' application setting to pass extra keyword arguments
to static file handler constructor.

14 years agoAdd static_handler_class application setting, and move most of static_url
Ben Darnell [Sun, 14 Aug 2011 21:38:42 +0000 (14:38 -0700)] 
Add static_handler_class application setting, and move most of static_url
into the handler class where it can be overridden.

14 years agoAdd tests for static file functionality
Ben Darnell [Sun, 14 Aug 2011 21:20:09 +0000 (14:20 -0700)] 
Add tests for static file functionality

14 years agoIn case the callback_uri and the uri that called authenticate_redirect
Ben Darnell [Sun, 14 Aug 2011 19:03:07 +0000 (12:03 -0700)] 
In case the callback_uri and the uri that called authenticate_redirect
are different, use the callback as the openid realm.

14 years agoRelease note updates
Ben Darnell [Sun, 14 Aug 2011 18:40:10 +0000 (11:40 -0700)] 
Release note updates

14 years agoClean up after the _check_file refactoring.
Ben Darnell [Sun, 14 Aug 2011 17:55:10 +0000 (10:55 -0700)] 
Clean up after the _check_file refactoring.

14 years agoAdd the option to run application hooks before autoreloading.
Ben Darnell [Sun, 14 Aug 2011 17:38:52 +0000 (10:38 -0700)] 
Add the option to run application hooks before autoreloading.

Closes #331

14 years agoRemove tox config for pypy with mysql.
Ben Darnell [Sun, 14 Aug 2011 16:53:55 +0000 (09:53 -0700)] 
Remove tox config for pypy with mysql.

The module builds on pypy, but doesn't work (and having it loaded causes
non-deterministic failures in the process-related tests)

14 years agoAccept timedelta objects in IOLoop.add_timeout.
Ben Darnell [Sat, 6 Aug 2011 21:21:19 +0000 (14:21 -0700)] 
Accept timedelta objects in IOLoop.add_timeout.

Closes #329.

14 years agoSpeed up _convert_header_value
Ben Darnell [Sat, 6 Aug 2011 20:23:35 +0000 (13:23 -0700)] 
Speed up _convert_header_value

14 years agoAdd RequestHandler.add_header to allow headers to occur multiple times.
Ben Darnell [Sat, 6 Aug 2011 20:06:54 +0000 (13:06 -0700)] 
Add RequestHandler.add_header to allow headers to occur multiple times.

14 years agoBetter path surgery in autoreload
Ben Darnell [Sat, 6 Aug 2011 19:23:12 +0000 (12:23 -0700)] 
Better path surgery in autoreload

14 years agoAllow template directives to span multiple lines 326/head
Alek Storm [Wed, 3 Aug 2011 08:25:31 +0000 (08:25 +0000)] 
Allow template directives to span multiple lines

14 years agoFix style, add comments
Ben Darnell [Wed, 3 Aug 2011 06:58:41 +0000 (23:58 -0700)] 
Fix style, add comments

14 years agoMerge remote-tracking branch 'alekstorm/master' into merge
Ben Darnell [Wed, 3 Aug 2011 06:54:28 +0000 (23:54 -0700)] 
Merge remote-tracking branch 'alekstorm/master' into merge

14 years agoIf a PeriodicCallback runs longer than its period, skip the missed callbacks
Ben Darnell [Wed, 3 Aug 2011 06:47:55 +0000 (23:47 -0700)] 
If a PeriodicCallback runs longer than its period, skip the missed callbacks
instead of trying to run all the missed callbacks to catch up.

14 years agoMerge remote-tracking branch 'jfisteus/periodic_callback' into merge
Ben Darnell [Wed, 3 Aug 2011 06:44:21 +0000 (23:44 -0700)] 
Merge remote-tracking branch 'jfisteus/periodic_callback' into merge

14 years agoAdd install() method to IOLoop to allow a custom subclass as the singleton.
Ben Darnell [Wed, 3 Aug 2011 06:33:39 +0000 (23:33 -0700)] 
Add install() method to IOLoop to allow a custom subclass as the singleton.

Singleton-related methods are now static, not class methods.

14 years agoTest that tornado.database is at least importable on all supported pythons.
Ben Darnell [Wed, 3 Aug 2011 06:26:50 +0000 (23:26 -0700)] 
Test that tornado.database is at least importable on all supported pythons.

Fix a problem preventing import on pypy (but apparently there are still other
issues with running MySQLdb on pypy, so the module will not actually work yet).

14 years agoAdd extra '_modules' reference to modules list in template parameters, which is used... 322/head
Alek Storm [Fri, 29 Jul 2011 21:02:57 +0000 (21:02 +0000)] 
Add extra '_modules' reference to modules list in template parameters, which is used by {% module ... %} directive to avoid naming conflicts with Python modules named 'modules'

14 years agoStabilization of the period of ioloop.PeriodicCallback. 320/head
Jesus Arias Fisteus [Thu, 28 Jul 2011 16:44:29 +0000 (18:44 +0200)] 
Stabilization of the period of ioloop.PeriodicCallback.

Previously, the timeout for the following event was computed by adding
callback_time to the actual time the callback finished, which caused
calls to the callback not being trully periodic.

This commit makes callback_time be a stable period by scheduling the
next timeout callback_time after the previous timeout was scheduled.

14 years agoAdd option to print out generated template code in benchmark
Ben Darnell [Thu, 28 Jul 2011 05:09:49 +0000 (22:09 -0700)] 
Add option to print out generated template code in benchmark

14 years agoSpeed up xhtml_escape (template benchmark goes from 49ms to 32ms)
Ben Darnell [Thu, 28 Jul 2011 05:03:50 +0000 (22:03 -0700)] 
Speed up xhtml_escape (template benchmark goes from 49ms to 32ms)

14 years agoAdd a template benchmark, based on one in jinja2
Ben Darnell [Thu, 28 Jul 2011 05:01:05 +0000 (22:01 -0700)] 
Add a template benchmark, based on one in jinja2

14 years agoMore defensiveness about patterns that could lead to double callbacks.
Ben Darnell [Thu, 28 Jul 2011 04:04:22 +0000 (21:04 -0700)] 
More defensiveness about patterns that could lead to double callbacks.

14 years agoAllow unicode string literals to appear in template expressions.
Ben Darnell [Tue, 26 Jul 2011 17:50:32 +0000 (10:50 -0700)] 
Allow unicode string literals to appear in template expressions.

Closes #313.

14 years agoSupport Content-Length headers that have been duplicated by a proxy.
Ben Darnell [Mon, 25 Jul 2011 02:59:14 +0000 (19:59 -0700)] 
Support Content-Length headers that have been duplicated by a proxy.

Closes #249.

14 years agoMerge branch 'httpclient_buffer'
Ben Darnell [Mon, 25 Jul 2011 02:24:23 +0000 (19:24 -0700)] 
Merge branch 'httpclient_buffer'

14 years agoFix test that depended on simple_httpclient implementation detail.
Ben Darnell [Mon, 25 Jul 2011 02:23:38 +0000 (19:23 -0700)] 
Fix test that depended on simple_httpclient implementation detail.

14 years agoAllow setting the maximum read buffer size when constructing a SimpleAsyncHTTPClient... 310/head
David Recordon [Thu, 21 Jul 2011 04:23:01 +0000 (21:23 -0700)] 
Allow setting the maximum read buffer size when constructing a SimpleAsyncHTTPClient. Defaults to 100mb like the underlying IOStream. Tested that fetching a file over 100mb no longer gives a "Maximum read buffer size" exception.

14 years agoConsistently guard against uncaught exceptions leading to multiple callback
Ben Darnell [Wed, 20 Jul 2011 02:35:22 +0000 (19:35 -0700)] 
Consistently guard against uncaught exceptions leading to multiple callback
invocations in SimpleAsyncHTTPClient.