Commit Graph

1108 Commits

Author SHA1 Message Date
Ben Darnell f618c2f6d2 Ignore .class files (create by jython) 2012-05-12 10:12:44 -07:00
Ben Darnell d79458151c 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.
2012-05-12 10:12:38 -07:00
Ben Darnell a9443b7fdc Replace all occurrences of 3-argument raise statements with the
version from testing.py, which works better with 2to3.

Closes #508
2012-05-10 23:26:34 -07:00
Ben Darnell 25f4990043 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.
2012-05-09 21:57:44 -07:00
Jason Choy 783d76cbfc Test strip and add space still works when extra_params is a callable 2012-05-08 10:24:46 +01:00
Jason Choy 4fd35b8c34 Added a test case for extra_params as a callable 2012-05-08 10:15:24 +01:00
Ben Darnell 28590fce12 Fix handling of non-ascii data in reverse_url.
Closes #490.
2012-05-07 00:18:55 -07:00
Ben Darnell 2a1601fd4b Update next release notes 2012-05-06 22:59:56 -07:00
Ben Darnell a548ab670b 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.
2012-05-06 22:46:53 -07:00
bdarnell 625c6e052f Merge pull request #498 from mckoss/feature/set-option
fix bug setting options programatically
2012-05-06 21:43:25 -07:00
bdarnell de3cf92a96 Merge pull request #484 from vadimg/master
make commandline args override config file args when multiple=True
2012-05-06 21:36:39 -07:00
Ben Darnell fde872df39 Merge remote-tracking branch 'mckoss/feature/pretty-help' into merge 2012-05-06 21:10:05 -07:00
Ben Darnell 62ff417c19 Fix test on python 3 2012-05-06 18:39:57 -07:00
Ben Darnell 91ea775747 Merge remote-tracking branch 'screeley/master'
Conflicts:
	tornado/simple_httpclient.py
2012-05-06 18:30:16 -07:00
Ben Darnell 6dbce93998 Fix bug when max_clients kwarg is passed to AsyncHTTPClient.configure.
Closes #493.
2012-05-06 18:26:54 -07:00
Ben Darnell 9ef20e3fae Make autoreload a little more robust against weird import failures 2012-05-06 18:09:51 -07:00
bdarnell 8f44acda38 Merge pull request #497 from polymorphm/master
tornado.ioloop.IOLoop.instance() should be threadsafe
2012-05-06 17:41:29 -07:00
Ben Darnell f5012b423f Document and test for type differences between get_cookie and get_secure_cookie.
Closes #501.
2012-05-06 17:29:02 -07:00
Ben Darnell 088f0c14cd Expand path encoding test to cover issues raised by pull request 505
(unicode in URLSpecs).
2012-05-06 16:46:28 -07:00
bdarnell 930c945c8e Merge pull request #503 from jparise/http-patch-method
Add support for the HTTP PATCH method.
2012-05-06 15:20:46 -07:00
Casey Muller c3ed68a31d Fix setting cookies under WSGI, broken by the rename from _new_cookies to _new_cookie in 70ea7a5a6c 2012-05-06 11:18:29 -07:00
Jason Choy 53e7c751c3 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 2012-05-06 13:22:40 +01:00
Jon Parise bd1fdaabd8 Add support for the HTTP PATCH method.
PATCH is a proposed standard described by RFC 5789:

    http://tools.ietf.org/html/rfc5789
2012-05-02 13:41:10 -07:00
Ben Darnell 50244877b5 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.
2012-04-27 20:50:01 -07:00
Mike Koss dd3ff7f89b fix bug when no help text given for option - wrap returns empty list 2012-04-27 04:16:28 -07:00
Mike Koss 47860908c5 fix bug setting options programatically 2012-04-25 17:34:26 -07:00
Ben Darnell 29f98d0768 Remove python 3 colored logging fix from next release notes since it
went out in 2.2.1.
2012-04-23 22:41:11 -07:00
Ben Darnell 3df46ee312 Merge branch 'branch2.2'
Conflicts:
	setup.py
	tornado/__init__.py
	tornado/test/web_test.py
	tox.ini
	website/sphinx/releases.rst
2012-04-23 22:34:42 -07:00
Ben Darnell 235cb17a0a Add .travis.yml file to branch2.2 just to make everything green. 2012-04-23 22:25:16 -07:00
Ben Darnell a1bb663595 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 e960e9bc9d.
2012-04-23 22:15:17 -07:00
Ben Darnell 8d7f9f014e Version number bump for 2.2.1 2012-04-23 22:04:06 -07:00
Ben Darnell c135c368de Release notes for 2.2.1 2012-04-23 22:03:17 -07:00
Ben Darnell 1ae91f6d58 Fix reponse header sanitization. 2012-04-23 21:55:05 -07:00
Ben Darnell 15798a1d6a Cherry-pick b151a1ee96 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.
2012-04-23 21:37:34 -07:00
Ben Darnell c1f72d504f Pin twisted versions in the 2.2 branch to 11.1.0 since that release doesn't
pass its tests with newer versions.
2012-04-23 21:35:15 -07:00
Ben Darnell 5ae39bc6d1 Update vagrant configs for vagrant 1.0 2012-04-23 01:12:09 -07:00
Andrej A Antonov 840392fa34 double-checked-locking in tornado.ioloop.IOLoop.instance() 2012-04-21 01:37:53 +04:00
Ben Darnell b082051f6c Disable python 2.6 on travis-ci, since I don't have enough visibility
to dig into the SSL segfault.
2012-04-18 22:56:14 -07:00
Ben Darnell bcc9a0a629 Increase verbosity for tests on travis-ci to track down a segfault on 2.6 2012-04-18 22:42:34 -07:00
Ben Darnell 351c3223f5 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.
2012-04-18 22:22:06 -07:00
bdarnell b875a8b546 Merge pull request #495 from alekstorm/template_try_else
Add `else` as possible sub-clause in `try` blocks in templates.
2012-04-18 21:31:39 -07:00
Ben Darnell 983fb8bae8 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.
2012-04-18 21:29:06 -07:00
Ben Darnell 4e98959376 Tweak a timing-sensitive test to have fewer false failures. 2012-04-18 18:36:14 -07:00
Alek Storm 4416c0a654 Add `else` as possible sub-clause in `try` blocks in templates.
Add test case.
2012-04-17 14:55:05 -04:00
Mike Koss e4e85da3a6 pretty up --help formatting 2012-04-05 14:18:40 -07:00
Ben Darnell 38908bf6b7 Make tornado.database importable when MySQLdb is not available.
This fixes the docs build on readthedocs.org.

Closes #485.
2012-04-01 14:41:47 -07:00
Vadim Graboys 92d1eb0f75 fix handling of multiple commandline args
make commandline args override config file args when multiple=True
instead of appending to config file args
2012-03-27 15:21:20 -04:00
Ben Darnell 2ff579a65c Release note updates 2012-03-25 17:22:33 -07:00
Ben Darnell 41463a9851 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)
2012-03-25 17:12:00 -07:00
Ben Darnell c86b8ce005 Clean up alarm signals in process_test when the test fails 2012-03-25 12:37:37 -07:00