]>
git.ipfire.org Git - thirdparty/tornado.git/log
Ben Darnell [Sun, 20 May 2012 23:57:36 +0000 (16:57 -0700)]
Fix docstring formatting
Ben Darnell [Sun, 20 May 2012 23:54:16 +0000 (16:54 -0700)]
Merge remote-tracking branch 'jjwchoy/master'
Modified linkify to accept a callable for extra_params.
Closes #506.
Ben Darnell [Sun, 20 May 2012 23:51:02 +0000 (16:51 -0700)]
304 responses no longer include entity headers like Content-Length
This is required by the RFC as it may confuse caches.
Ben Darnell [Sun, 20 May 2012 23:27:28 +0000 (16:27 -0700)]
Add status_code to the OutputTransform.transform_first_chunk interface.
This is needed for correct support of the 304 status code, which
has no body and should not have either a Content-Length or
Transfer-Encoding. This is a backwards-incompatible change to an
interface that was never technically private, but not included in the
documentation and as far as I can tell was never used outside
tornado itself.
Ben Darnell [Sat, 19 May 2012 21:22:03 +0000 (14:22 -0700)]
Fight bitrot in tornado.platform.twisted.
A new release of zope.interface breaks things on python 2.5, and
sets off our (overly-sensitive?) deprecation checking.
Ben Darnell [Sat, 12 May 2012 05:14:08 +0000 (22:14 -0700)]
Ignore .class files (create by jython)
Ben Darnell [Sat, 12 May 2012 04:48:21 +0000 (21:48 -0700)]
Move tornado.platform.windows.Waker to new module platform.common.
Cleaned up the few windows-specific bits of code. The socket-based
Waker is also usable on Jython.
Ben Darnell [Fri, 11 May 2012 06:26:34 +0000 (23:26 -0700)]
Replace all occurrences of 3-argument raise statements with the
version from testing.py, which works better with 2to3.
Closes #508
Ben Darnell [Thu, 10 May 2012 04:57:44 +0000 (21:57 -0700)]
Fix path parsing in HTTPServer.
urlparse.urlsplit expects a full url, but we were using it for a bare path.
This mostly worked but would parse paths beginning with "//" incorrectly.
Fortunately all we really need to do is split the path on "?".
Closes #509.
Jason Choy [Tue, 8 May 2012 09:24:46 +0000 (10:24 +0100)]
Test strip and add space still works when extra_params is a callable
Jason Choy [Tue, 8 May 2012 09:15:24 +0000 (10:15 +0100)]
Added a test case for extra_params as a callable
Ben Darnell [Mon, 7 May 2012 07:18:55 +0000 (00:18 -0700)]
Fix handling of non-ascii data in reverse_url.
Closes #490.
Ben Darnell [Mon, 7 May 2012 05:59:56 +0000 (22:59 -0700)]
Update next release notes
Ben Darnell [Mon, 7 May 2012 05:46:53 +0000 (22:46 -0700)]
Refactor tornado.options to make it testable.
Now most code is in methods of the _Options class, and it is possible
to create isolated instances of that class. The test is pretty
rudimentary, but it's a start.
bdarnell [Mon, 7 May 2012 04:43:25 +0000 (21:43 -0700)]
Merge pull request #498 from mckoss/feature/set-option
fix bug setting options programatically
bdarnell [Mon, 7 May 2012 04:36:39 +0000 (21:36 -0700)]
Merge pull request #484 from vadimg/master
make commandline args override config file args when multiple=True
Ben Darnell [Mon, 7 May 2012 04:10:05 +0000 (21:10 -0700)]
Merge remote-tracking branch 'mckoss/feature/pretty-help' into merge
Ben Darnell [Mon, 7 May 2012 01:39:57 +0000 (18:39 -0700)]
Fix test on python 3
Ben Darnell [Mon, 7 May 2012 01:30:16 +0000 (18:30 -0700)]
Merge remote-tracking branch 'screeley/master'
Conflicts:
tornado/simple_httpclient.py
Ben Darnell [Mon, 7 May 2012 01:10:13 +0000 (18:10 -0700)]
Fix bug when max_clients kwarg is passed to AsyncHTTPClient.configure.
Closes #493.
Ben Darnell [Mon, 7 May 2012 01:09:51 +0000 (18:09 -0700)]
Make autoreload a little more robust against weird import failures
bdarnell [Mon, 7 May 2012 00:41:29 +0000 (17:41 -0700)]
Merge pull request #497 from polymorphm/master
tornado.ioloop.IOLoop.instance() should be threadsafe
Ben Darnell [Mon, 7 May 2012 00:29:02 +0000 (17:29 -0700)]
Document and test for type differences between get_cookie and get_secure_cookie.
Closes #501.
Ben Darnell [Sun, 6 May 2012 23:46:28 +0000 (16:46 -0700)]
Expand path encoding test to cover issues raised by pull request 505
(unicode in URLSpecs).
bdarnell [Sun, 6 May 2012 22:20:46 +0000 (15:20 -0700)]
Merge pull request #503 from jparise/http-patch-method
Add support for the HTTP PATCH method.
Casey Muller [Sun, 6 May 2012 18:18:29 +0000 (11:18 -0700)]
Fix setting cookies under WSGI, broken by the rename from _new_cookies to _new_cookie in https://github.com/facebook/tornado/commit/
70ea7a5a6ca956b613168c9d123ee7cc951054bf
Jason Choy [Sun, 6 May 2012 12:22:40 +0000 (13:22 +0100)]
Modified linkify to accept a callable for extra_params. This allows different params based for each link, for example to treat internal and external links differently
Jon Parise [Wed, 2 May 2012 20:41:10 +0000 (13:41 -0700)]
Add support for the HTTP PATCH method.
PATCH is a proposed standard described by RFC 5789:
http://tools.ietf.org/html/rfc5789
Ben Darnell [Sat, 28 Apr 2012 03:50:01 +0000 (20:50 -0700)]
Ubuntu 12.04 is out, so add a vagrant config for it.
Replace the 11.04 config, but keep 10.04 to cover the two LTS releases.
Mike Koss [Fri, 27 Apr 2012 11:16:28 +0000 (04:16 -0700)]
fix bug when no help text given for option - wrap returns empty list
Mike Koss [Thu, 26 Apr 2012 00:34:26 +0000 (17:34 -0700)]
fix bug setting options programatically
Ben Darnell [Tue, 24 Apr 2012 05:41:11 +0000 (22:41 -0700)]
Remove python 3 colored logging fix from next release notes since it
went out in 2.2.1.
Ben Darnell [Tue, 24 Apr 2012 05:34:42 +0000 (22:34 -0700)]
Merge branch 'branch2.2'
Conflicts:
setup.py
tornado/__init__.py
tornado/test/web_test.py
tox.ini
website/sphinx/releases.rst
Ben Darnell [Tue, 24 Apr 2012 05:25:16 +0000 (22:25 -0700)]
Add .travis.yml file to branch2.2 just to make everything green.
Ben Darnell [Mon, 30 Jan 2012 19:10:17 +0000 (11:10 -0800)]
Cherry-pick
cc8e893 into branch2.2
Original commit message:
Revert "Run the website in python2.7 mode"
Can't use python2.7 mode without migrating to the "high-replication
datastore", and even though we don't have any data "migration" is a
pain.
This reverts commit
e960e9bc9d48906ed37b65ad6eb774ab33637170 .
Ben Darnell [Tue, 24 Apr 2012 05:04:06 +0000 (22:04 -0700)]
Version number bump for 2.2.1
Ben Darnell [Tue, 24 Apr 2012 05:03:17 +0000 (22:03 -0700)]
Release notes for 2.2.1
Ben Darnell [Tue, 24 Apr 2012 04:55:05 +0000 (21:55 -0700)]
Fix reponse header sanitization.
Ben Darnell [Tue, 31 Jan 2012 08:34:12 +0000 (00:34 -0800)]
Cherry-pick
b151a1ee967 into branch2.2.
Original commit message:
Add a version check for the curses unicode hack so it won't break when
python 3.2.3 or 3.3 are released.
Closes #450.
Ben Darnell [Tue, 24 Apr 2012 04:35:15 +0000 (21:35 -0700)]
Pin twisted versions in the 2.2 branch to 11.1.0 since that release doesn't
pass its tests with newer versions.
Ben Darnell [Mon, 23 Apr 2012 08:12:09 +0000 (01:12 -0700)]
Update vagrant configs for vagrant 1.0
Andrej A Antonov [Fri, 20 Apr 2012 21:34:00 +0000 (01:34 +0400)]
double-checked-locking in tornado.ioloop.IOLoop.instance()
Ben Darnell [Thu, 19 Apr 2012 05:56:14 +0000 (22:56 -0700)]
Disable python 2.6 on travis-ci, since I don't have enough visibility
to dig into the SSL segfault.
Ben Darnell [Thu, 19 Apr 2012 05:42:34 +0000 (22:42 -0700)]
Increase verbosity for tests on travis-ci to track down a segfault on 2.6
Ben Darnell [Thu, 19 Apr 2012 05:22:06 +0000 (22:22 -0700)]
The RequestHandler.flush callback should be run even if there is no data.
Also IOStream._try_inline_read needs the same fake-callback change
as _handle_read (I can't seem to come up with a good isolated test for this,
but it's tickled by the empty-flush test).
Closes #492.
bdarnell [Thu, 19 Apr 2012 04:31:39 +0000 (21:31 -0700)]
Merge pull request #495 from alekstorm/template_try_else
Add `else` as possible sub-clause in `try` blocks in templates.
Ben Darnell [Thu, 19 Apr 2012 00:45:09 +0000 (17:45 -0700)]
Open template files in binary mode (to be decoded as utf8 later)
Text mode in python 3 uses an environment-dependent encoding, so
add a test and run it in both C and utf-8 locales.
Ben Darnell [Thu, 19 Apr 2012 01:32:59 +0000 (18:32 -0700)]
Tweak a timing-sensitive test to have fewer false failures.
Alek Storm [Tue, 17 Apr 2012 18:55:05 +0000 (14:55 -0400)]
Add `else` as possible sub-clause in `try` blocks in templates.
Add test case.
Mike Koss [Mon, 13 Feb 2012 22:17:11 +0000 (14:17 -0800)]
pretty up --help formatting
Ben Darnell [Sun, 1 Apr 2012 21:41:47 +0000 (14:41 -0700)]
Make tornado.database importable when MySQLdb is not available.
This fixes the docs build on readthedocs.org.
Closes #485.
Vadim Graboys [Tue, 27 Mar 2012 19:17:48 +0000 (15:17 -0400)]
fix handling of multiple commandline args
make commandline args override config file args when multiple=True
instead of appending to config file args
Ben Darnell [Mon, 26 Mar 2012 00:22:33 +0000 (17:22 -0700)]
Release note updates
Ben Darnell [Mon, 26 Mar 2012 00:12:00 +0000 (17:12 -0700)]
Increase performance of IOStream.read_until and read_until_regex.
_handle_read and _try_inline_read now only call _read_from_buffer
once, after calling _read_to_buffer as many times as they can. This
allows the progressive _double_prefix calls in _read_from_buffer to
work as efficiently as possible.
In testing with a 4MB read, performance improved by a factor of 32 (8
seconds to 0.25 seconds)
Ben Darnell [Sun, 25 Mar 2012 19:37:37 +0000 (12:37 -0700)]
Clean up alarm signals in process_test when the test fails
Ben Darnell [Sat, 24 Mar 2012 23:05:11 +0000 (16:05 -0700)]
Add python 3.3 (alpha) to the tox config.
Ben Darnell [Sat, 24 Mar 2012 22:07:26 +0000 (15:07 -0700)]
Expand documentation for IOLoop.stop and IOLoop.close
Ben Darnell [Sat, 24 Mar 2012 21:53:06 +0000 (14:53 -0700)]
Rename example in docs for clarity
Ben Darnell [Sat, 24 Mar 2012 21:40:10 +0000 (14:40 -0700)]
Merge branch 'master' of github.com:facebook/tornado
Ben Darnell [Sat, 24 Mar 2012 21:35:55 +0000 (14:35 -0700)]
Merge remote-tracking branch 'alekstorm/read_from_buffer_refactor' into merge
bdarnell [Sat, 24 Mar 2012 20:56:05 +0000 (13:56 -0700)]
Merge pull request #482 from wsantos/patch-2
Don't try to send post_args in the url with FacebookGraphMixin
Ben Darnell [Sat, 24 Mar 2012 20:46:06 +0000 (13:46 -0700)]
Add HTTPServer's type test to WSGIApplication, and fix another python3 bug.
Ben Darnell [Sat, 24 Mar 2012 20:23:55 +0000 (13:23 -0700)]
Merge remote-tracking branch 'jsamuel/wsgi-arg-keys' into merge
bdarnell [Sat, 24 Mar 2012 20:06:50 +0000 (13:06 -0700)]
Merge pull request #475 from andrew-d/master
addslash / removeslash modification
Ben Darnell [Sat, 24 Mar 2012 19:53:58 +0000 (12:53 -0700)]
Disable twisted process tests, which don't work for me on OSX 10.6
Waldecir Loureiro dos Santos Filho [Wed, 21 Mar 2012 19:56:30 +0000 (16:56 -0300)]
we dont need post_args in url, post_args will be sended in http body.
Justin Samuel [Mon, 19 Mar 2012 22:09:23 +0000 (15:09 -0700)]
Fix keys in wsgi request arguments being bytes in python3 when content-type is application/x-www-form-urlencoded.
Alek Storm [Thu, 15 Mar 2012 21:50:46 +0000 (17:50 -0400)]
Refactor IOStream.read_from_buffer() for speed, clarity
AndrewD [Thu, 8 Mar 2012 03:15:36 +0000 (22:15 -0500)]
Modified addslash & removeslash to use permanent redirect
Ben Darnell [Tue, 6 Mar 2012 07:25:06 +0000 (23:25 -0800)]
One more autoreload path tweak: set $PYTHONPATH just before exec,
whether autoreload is __main__ or not.
Ben Darnell [Tue, 6 Mar 2012 06:25:25 +0000 (22:25 -0800)]
Fix signal handlers clobbered by twisted tests.
The most visible effect of the bug was that test runs with autoreload
would not respond to ctrl-c.
Ben Darnell [Tue, 21 Feb 2012 04:31:33 +0000 (20:31 -0800)]
Move autoreload's sys.path manipulations earlier in the file, before
as many imports as possible.
This fixes an edge case discovered in a branch where I introduced
a module named tornado.concurrent.
Ben Darnell [Tue, 6 Mar 2012 05:49:41 +0000 (21:49 -0800)]
Fix some mutable values used as default arguments.
Also fix a doc discrepancy in which HTTPResponse.headers could be
a plain dict instead of an HTTPHeaders object (for errors that returned
no headers).
Ben Darnell [Tue, 6 Mar 2012 05:38:47 +0000 (21:38 -0800)]
Avoid modifying the headers object passed in by the client.
This fixes a problem in which the header object was reused across requests
and behavior became inconsistent when following redirects.
Closes #459.
Ben Darnell [Mon, 27 Feb 2012 18:15:48 +0000 (10:15 -0800)]
Fix travis build for python3
Ben Darnell [Mon, 27 Feb 2012 18:09:46 +0000 (10:09 -0800)]
Try out travis-ci.org
Ben Darnell [Sun, 26 Feb 2012 00:50:51 +0000 (16:50 -0800)]
Don't swallow exceptions that escape from TestCase.run().
This fixes a case in which nose would fail to report a failing test
(if the exception's str() method raised an exception).
Closes #466.
Sean Creeley [Thu, 23 Feb 2012 14:58:58 +0000 (09:58 -0500)]
RequestHander is set up to handle "OPTIONS" requests, but the
SimpleAsyncHTTPClient does not allow "OPTIONS" requests. This is a
pain when you are trying to write test cases for CORS. This simple
patch adds "OPTIONS" to the supported _SUPPORTED_METHODS in
_HTTPConnection and a test case to go along with it.
Ben Darnell [Wed, 22 Feb 2012 19:47:34 +0000 (11:47 -0800)]
Merge remote-tracking branch 'bergundy/master' into work
Ben Darnell [Mon, 20 Feb 2012 09:12:27 +0000 (01:12 -0800)]
Update twisted test blacklist for Twisted 12.0.0
Ben Darnell [Mon, 20 Feb 2012 08:40:19 +0000 (00:40 -0800)]
Revert "Remove optional setuptools import."
This reverts commit
50b28c5d7a1ccfc3cc3a5a8fc5cf664880598fc6 .
Turns out we do need setuptools in at least one situation:
distutils chokes if there are broken symlinks anywhere in the source
tree, but in testing with a VM there may be "broken" symlinks that point
outside the directory shared with the VM.
Ben Darnell [Mon, 20 Feb 2012 06:17:45 +0000 (22:17 -0800)]
Fix the Host header when using basic auth credentials in the URL.
Ben Darnell [Mon, 20 Feb 2012 05:57:52 +0000 (21:57 -0800)]
Release note updates for the last wave of merges
Ben Darnell [Mon, 20 Feb 2012 05:47:07 +0000 (21:47 -0800)]
Return the Etag header on 304 responses to an If-None-Match request.
Ben Darnell [Mon, 20 Feb 2012 05:37:50 +0000 (21:37 -0800)]
Revert "Use copy.deepcopy to clone HTTPRequest when following redirects."
This reverts commit
b7e604646537984e967dd25447a8df3e221bf9ed .
Something about this broke the tests.
Ben Darnell [Mon, 20 Feb 2012 05:30:15 +0000 (21:30 -0800)]
Use copy.deepcopy to clone HTTPRequest when following redirects.
This gives each request in a redirect chain its own copy of the
headers dictionary.
Closes #459.
Olivier Hardy [Mon, 6 Feb 2012 15:01:11 +0000 (16:01 +0100)]
In template, use handler reverse_url instead of application one
Olivier Hardy [Mon, 6 Feb 2012 14:40:51 +0000 (15:40 +0100)]
Fix locale.get_supported_locales(): remove cls parameter
Ben Darnell [Mon, 20 Feb 2012 04:31:48 +0000 (20:31 -0800)]
Merge remote-tracking branch 'jehiah/max_simultaneous_connections_457'
Ben Darnell [Mon, 20 Feb 2012 04:25:43 +0000 (20:25 -0800)]
Merge remote-tracking branch 'grydstedt/master' into work
Ben Darnell [Mon, 20 Feb 2012 04:08:26 +0000 (20:08 -0800)]
Test for https://github.com/facebook/tornado/pull/454
Ben Darnell [Mon, 20 Feb 2012 04:04:13 +0000 (20:04 -0800)]
Merge remote-tracking branch 'minrk/strkeys' into work
Ben Darnell [Mon, 20 Feb 2012 03:50:01 +0000 (19:50 -0800)]
Further refactoring of duplicated IOStream logic
Ben Darnell [Mon, 20 Feb 2012 03:41:50 +0000 (19:41 -0800)]
Merge remote-tracking branch 'birknilson/iostream_refactoring_read' into work
Conflicts:
tornado/iostream.py
Ben Darnell [Mon, 20 Feb 2012 03:33:08 +0000 (19:33 -0800)]
Pass parsed hostname around explictly instead of storing it on the urlsplit result.
In some versions of python (including 2.5 and 3.2 but not 2.6 or 2.7),
urlsplit results use __slots__ and therefore don't allow artibrary attributes
to be set.
Also move the storing of the parsed hostname above hostname_mapping,
since the cert should be checked against the requested url, not the remapped
one.
Closes #448.
Ben Darnell [Mon, 20 Feb 2012 03:22:31 +0000 (19:22 -0800)]
Merge remote-tracking branch 'ei-grad/master' into work
Ben Darnell [Mon, 20 Feb 2012 02:47:46 +0000 (18:47 -0800)]
Use a single Cookie.SimpleCookie for outgoing cookies instead of a list.
The main reason for this change is to repeated calls to set_cookie
overwrite rather than append.
Closes #445.
Ben Darnell [Mon, 20 Feb 2012 02:25:24 +0000 (18:25 -0800)]
Start a new release-notes file
Roey Berman [Mon, 13 Feb 2012 13:23:24 +0000 (15:23 +0200)]
Fixed: Subsequent calls to AsyncTestCase.wait() now clear previously set timeouts.
See: http://groups.google.com/group/python-tornado/browse_thread/thread/
cc77a08b15c39a14
Ben Darnell [Thu, 9 Feb 2012 09:08:04 +0000 (01:08 -0800)]
Check in autopep8 script