Commit Graph

1004 Commits

Author SHA1 Message Date
Ben Darnell 40dc1f098a Merge branch 'master' of github.com:facebook/tornado 2012-03-24 14:40:10 -07:00
Ben Darnell 4cae7b2cfa Merge remote-tracking branch 'alekstorm/read_from_buffer_refactor' into merge 2012-03-24 14:35:55 -07:00
bdarnell 3803fd663f Merge pull request #482 from wsantos/patch-2
Don't try to send post_args in the url with FacebookGraphMixin
2012-03-24 13:56:05 -07:00
Ben Darnell 6ffd170b0e Add HTTPServer's type test to WSGIApplication, and fix another python3 bug. 2012-03-24 13:46:06 -07:00
Ben Darnell 04188130c4 Merge remote-tracking branch 'jsamuel/wsgi-arg-keys' into merge 2012-03-24 13:23:55 -07:00
bdarnell cdaa99afbe Merge pull request #475 from andrew-d/master
addslash / removeslash modification
2012-03-24 13:06:50 -07:00
Ben Darnell c3ca9a3af7 Disable twisted process tests, which don't work for me on OSX 10.6 2012-03-24 12:53:58 -07:00
Waldecir Loureiro dos Santos Filho 68449f0b2a we dont need post_args in url, post_args will be sended in http body. 2012-03-21 16:56:30 -03:00
Justin Samuel 1c6dc7c3af Fix keys in wsgi request arguments being bytes in python3 when content-type is application/x-www-form-urlencoded. 2012-03-19 15:09:23 -07:00
Alek Storm b39891735f Refactor IOStream.read_from_buffer() for speed, clarity 2012-03-15 17:50:46 -04:00
AndrewD 722d978a73 Modified addslash & removeslash to use permanent redirect 2012-03-07 22:15:36 -05:00
Ben Darnell bcbef8c720 One more autoreload path tweak: set $PYTHONPATH just before exec,
whether autoreload is __main__ or not.
2012-03-05 23:25:06 -08:00
Ben Darnell 6bbf467481 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.
2012-03-05 22:25:25 -08:00
Ben Darnell d0c206aac6 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.
2012-03-05 21:52:56 -08:00
Ben Darnell aa7ac69062 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).
2012-03-05 21:49:41 -08:00
Ben Darnell 2f35821c23 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.
2012-03-05 21:38:47 -08:00
Ben Darnell daeb7c41f6 Fix travis build for python3 2012-02-27 10:15:48 -08:00
Ben Darnell 6c16f8cad7 Try out travis-ci.org 2012-02-27 10:09:46 -08:00
Ben Darnell 94dc4c78e8 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.
2012-02-25 16:50:51 -08:00
Ben Darnell 2ead3a81e8 Merge remote-tracking branch 'bergundy/master' into work 2012-02-22 11:47:34 -08:00
Ben Darnell d1429ff893 Update twisted test blacklist for Twisted 12.0.0 2012-02-20 01:12:27 -08:00
Ben Darnell 3b181f545a Revert "Remove optional setuptools import."
This reverts commit 50b28c5d7a.

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.
2012-02-20 00:42:21 -08:00
Ben Darnell 530731cc8d Fix the Host header when using basic auth credentials in the URL. 2012-02-19 22:17:45 -08:00
Ben Darnell 0f30e15036 Release note updates for the last wave of merges 2012-02-19 21:57:52 -08:00
Ben Darnell e1dca57b23 Return the Etag header on 304 responses to an If-None-Match request. 2012-02-19 21:47:07 -08:00
Ben Darnell 2c83f471fb Revert "Use copy.deepcopy to clone HTTPRequest when following redirects."
This reverts commit b7e6046465.

Something about this broke the tests.
2012-02-19 21:37:50 -08:00
Ben Darnell b7e6046465 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.
2012-02-19 21:30:15 -08:00
Olivier Hardy eac1e538b4 In template, use handler reverse_url instead of application one 2012-02-19 20:52:58 -08:00
Olivier Hardy 99d9d74c22 Fix locale.get_supported_locales(): remove cls parameter 2012-02-19 20:52:25 -08:00
Ben Darnell 63a3ed657a Merge remote-tracking branch 'jehiah/max_simultaneous_connections_457' 2012-02-19 20:31:48 -08:00
Ben Darnell 9431921ba8 Merge remote-tracking branch 'grydstedt/master' into work 2012-02-19 20:25:43 -08:00
Ben Darnell ceabffe26c Test for https://github.com/facebook/tornado/pull/454 2012-02-19 20:08:26 -08:00
Ben Darnell dca74f675e Merge remote-tracking branch 'minrk/strkeys' into work 2012-02-19 20:04:13 -08:00
Ben Darnell 2db0aceb32 Further refactoring of duplicated IOStream logic 2012-02-19 19:50:01 -08:00
Ben Darnell 01dd70c525 Merge remote-tracking branch 'birknilson/iostream_refactoring_read' into work
Conflicts:
	tornado/iostream.py
2012-02-19 19:41:50 -08:00
Ben Darnell 56ec1ee597 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.
2012-02-19 19:33:08 -08:00
Ben Darnell 83a0eedff9 Merge remote-tracking branch 'ei-grad/master' into work 2012-02-19 19:22:31 -08:00
Ben Darnell 70ea7a5a6c 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.
2012-02-19 18:47:46 -08:00
Ben Darnell 2539f8376c Start a new release-notes file 2012-02-19 18:25:24 -08:00
Roey Berman 6ed1eaf172 Fixed: Subsequent calls to AsyncTestCase.wait() now clear previously set timeouts.
See: http://groups.google.com/group/python-tornado/browse_thread/thread/cc77a08b15c39a14
2012-02-13 15:26:06 +02:00
Ben Darnell 2d665a41b0 Check in autopep8 script 2012-02-09 01:08:04 -08:00
Ben Darnell 605c521390 Fix weird indentation in auth.py and simple_httpclient_test.py 2012-02-09 01:02:25 -08:00
Ben Darnell c152b78448 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
2012-02-09 00:55:27 -08:00
Ben Darnell 58a7ff10a8 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.
2012-02-09 00:17:58 -08:00
Ben Darnell 837da79ef9 Fix one last implicit relative import 2012-02-08 23:38:34 -08:00
Ben Darnell da6d821e0c Standardize future imports for all files in the package. 2012-02-08 23:22:51 -08:00
Ben Darnell 27f9c3a775 Add a script to rewrite __future__ imports 2012-02-08 23:16:56 -08:00
Jehiah Czebotar 5872722720 pass kwargs through HTTPClient 2012-02-03 23:46:31 -05:00
Gustav Rydstedt 1157a55a44 Add support for client certificates in curl http client 2012-02-03 15:28:31 -08:00
MinRK 0b75124bb2 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.
2012-02-02 14:05:59 -08:00