]>
git.ipfire.org Git - thirdparty/tornado.git/log
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 [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.
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.
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
Ben Darnell [Thu, 9 Feb 2012 09:00:11 +0000 (01:00 -0800)]
Fix weird indentation in auth.py and simple_httpclient_test.py
Ben Darnell [Thu, 9 Feb 2012 08:55:27 +0000 (00:55 -0800)]
While I'm touching every file, run autopep8 too.
Might as well get all the merge headaches over with at once :)
Ran with
$ autopep8 --ignore=E111,W602 i tornado/*.py tornado/platform/*.py tornado/test/*.py
Ben Darnell [Thu, 9 Feb 2012 08:17:58 +0000 (00:17 -0800)]
Turn on __future__ division too.
All existing uses of division were already using a float for at least
one operand (except the tests that just do 1/0 as a quick way to throw
an exception).
We have now turned on all the __future__ options available in python2.5.
Ben Darnell [Thu, 9 Feb 2012 07:38:34 +0000 (23:38 -0800)]
Fix one last implicit relative import
Ben Darnell [Thu, 9 Feb 2012 07:22:51 +0000 (23:22 -0800)]
Standardize future imports for all files in the package.
Ben Darnell [Thu, 9 Feb 2012 07:16:56 +0000 (23:16 -0800)]
Add a script to rewrite __future__ imports
Jehiah Czebotar [Sat, 4 Feb 2012 04:46:31 +0000 (23:46 -0500)]
pass kwargs through HTTPClient
Gustav Rydstedt [Fri, 3 Feb 2012 23:28:31 +0000 (15:28 -0800)]
Add support for client certificates in curl http client
MinRK [Thu, 2 Feb 2012 22:05:59 +0000 (14:05 -0800)]
coerce kwarg keys to str
If handler regex is unicode, the keys of groupdict are unicode, but should be
str, as Python < 2.6.5 does not accept unicode keys in:
_execute(*args, **kwargs)
Since they are for keyword args, they will be valid identifiers, and thus ascii.
Birk Nilson [Thu, 2 Feb 2012 20:35:24 +0000 (21:35 +0100)]
Move identical IOStream read handling in read_until, read_until_regex
and read_bytes to private method.
Ben Darnell [Thu, 2 Feb 2012 17:56:47 +0000 (09:56 -0800)]
Remove unused __main__ block that ran doctests from a non-test module.
Ben Darnell [Thu, 2 Feb 2012 17:44:18 +0000 (09:44 -0800)]
Merge remote-tracking branch 'igorsobreira/master'
Ben Darnell [Wed, 1 Feb 2012 17:15:23 +0000 (09:15 -0800)]
Enable strict warnings in test runs.
This includes python 3.2's ResourceWarnings, which exposed the
socket leaks fixed in the previous commit.
Ben Darnell [Wed, 1 Feb 2012 17:17:03 +0000 (09:17 -0800)]
Always close sockets in simple_httpclient instead of leaving them for the GC.
Also fix some other sockets left open in tests.
Closes #451.
Ben Darnell [Tue, 31 Jan 2012 08:34:12 +0000 (00:34 -0800)]
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, 31 Jan 2012 07:46:36 +0000 (23:46 -0800)]
Remove optional setuptools import.
We don't rely on any setuptools features for python2 builds, and the
optional import makes our builds depend on the environment in subtle
ways (egg-info directories, etc).
Ben Darnell [Tue, 31 Jan 2012 07:39:31 +0000 (23:39 -0800)]
Bump post-release version number (now pep 386 compliant!)
Ben Darnell [Mon, 30 Jan 2012 19:10:17 +0000 (11:10 -0800)]
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 [Mon, 30 Jan 2012 19:01:44 +0000 (11:01 -0800)]
Set version number to 2.2.
Ben Darnell [Mon, 30 Jan 2012 19:01:35 +0000 (11:01 -0800)]
Final release notes for 2.2
Ben Darnell [Mon, 30 Jan 2012 05:56:53 +0000 (21:56 -0800)]
Run the website in python2.7 mode
Ben Darnell [Mon, 30 Jan 2012 05:53:45 +0000 (21:53 -0800)]
Add a highlights section to the release notes.
Andrew Grigorev [Mon, 30 Jan 2012 04:12:24 +0000 (08:12 +0400)]
fixed usage of bad hostname (ipv6 addresses support is broken in urlparse until 2.7)
Igor Sobreira [Wed, 25 Jan 2012 02:19:40 +0000 (00:19 -0200)]
Add test to parse_multipart_form_data() when no "name" parameter is found
Igor Sobreira [Wed, 25 Jan 2012 02:14:17 +0000 (00:14 -0200)]
Add test to parse_multipart_form_data() when line does not end with the correct line break (\r\n)
Igor Sobreira [Wed, 25 Jan 2012 01:48:54 +0000 (23:48 -0200)]
Add test to parse_multipart_form_data() when invalid Content-Disposition
Igor Sobreira [Wed, 25 Jan 2012 01:43:47 +0000 (23:43 -0200)]
Add test to parse_multipart_form_data() when missing headers
Igor Sobreira [Wed, 25 Jan 2012 00:45:18 +0000 (22:45 -0200)]
Add test to parse_multipart_form_data() on httputil when "boundary" parameter has quotes
Ben Darnell [Mon, 23 Jan 2012 18:20:35 +0000 (10:20 -0800)]
Document curl_httpclient empty password fix.
Accept None as auth_password in simple_httpclient for consistency with
curl_httpclient.
Ben Darnell [Mon, 23 Jan 2012 18:12:56 +0000 (10:12 -0800)]
Merge commit 'df23c'
Ben Darnell [Mon, 23 Jan 2012 17:45:29 +0000 (09:45 -0800)]
Fix gen.engine docs on decorator order.
Add some more test cases that use gen.engine and web.asynchronous together.
dave mankoff [Mon, 23 Jan 2012 13:33:51 +0000 (08:33 -0500)]
change encode('ascii') to utf8()
Ben Darnell [Mon, 23 Jan 2012 02:15:01 +0000 (18:15 -0800)]
Add a timeout to test_sslv2_fail so it passes on cygwin.
Ben Darnell [Mon, 23 Jan 2012 01:52:43 +0000 (17:52 -0800)]
Doc updates
Ben Darnell [Mon, 23 Jan 2012 01:04:51 +0000 (17:04 -0800)]
Release note updates
Ben Darnell [Sun, 22 Jan 2012 23:26:35 +0000 (15:26 -0800)]
Make StaticFileHandler.parse_url_path an instance method, and make
it responsible for os.path.sep conversion.
Assorted doc updates for StaticFileHandler.
Ben Darnell [Sun, 22 Jan 2012 22:56:21 +0000 (14:56 -0800)]
Merge commit '59812' into work
Ben Darnell [Sun, 22 Jan 2012 22:25:16 +0000 (14:25 -0800)]
Merge remote-tracking branch 'birknilson/static_url_override' into work
Ben Darnell [Sun, 22 Jan 2012 22:19:19 +0000 (14:19 -0800)]
Always set Etag in StaticFileHandler so it won't break if the default
Etag implementation in RequestHandler changes.
dave mankoff [Sun, 22 Jan 2012 22:15:10 +0000 (17:15 -0500)]
fix curl basic auth
Ben Darnell [Sun, 22 Jan 2012 22:10:14 +0000 (14:10 -0800)]
Merge remote-tracking branch 'lerks/master' into work
Ben Darnell [Sun, 22 Jan 2012 01:39:37 +0000 (17:39 -0800)]
Update websocket chat demo to work when not addressed as localhost.
Turn on draft76 support.
Ben Darnell [Sun, 22 Jan 2012 01:28:07 +0000 (17:28 -0800)]
Merge remote-tracking branch 'MrJoes/master' into work
Conflicts:
tornado/websocket.py
Ben Darnell [Sun, 22 Jan 2012 01:20:10 +0000 (17:20 -0800)]
Refactor websocket close logic; remove dependency on singleton IOLoop.
Ben Darnell [Sun, 22 Jan 2012 01:12:22 +0000 (17:12 -0800)]
Disable slow websocket performance tests by default.
Add pypy to the mix for when we do run the perf tests. Depending on
the benchmark pypy is ~twice as fast as cpython 2.7
Ben Darnell [Sun, 22 Jan 2012 00:16:36 +0000 (16:16 -0800)]
Remove stray log line
Ben Darnell [Sat, 21 Jan 2012 23:58:35 +0000 (15:58 -0800)]
Check if the stream is closed before writing final websocket close packet.
Closes #390.
Ben Darnell [Sat, 21 Jan 2012 23:34:11 +0000 (15:34 -0800)]
Websocket subprotocol updates.
Failure to select a subprotocol is not fatal, so rename method from
validate_subprotocol to select_subprotocol. Subprotocols are a
comma-separated list in the RFC version, but a single value in
draft76.
Ben Darnell [Sat, 21 Jan 2012 23:15:12 +0000 (15:15 -0800)]
Merge remote-tracking branch 'davidgaleano/master' into work
Conflicts:
tornado/websocket.py
Ben Darnell [Sat, 21 Jan 2012 22:56:43 +0000 (14:56 -0800)]
Allow handlers to override the selection of "ws" or "wss" in the draft76
handshake, to work with SSL proxies that do not insert an X-Scheme header.
Closes #437.