]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
14 years agoReplace IOStream._read_buffer_size() with a simple counter to speed up performance... 277/head
Rickard B [Tue, 7 Jun 2011 10:22:23 +0000 (12:22 +0200)] 
Replace IOStream._read_buffer_size() with a simple counter to speed up performance when buffer contains many chunks.

14 years agoAdd a Template UIModule, allowing templates to be called with keyword
Ben Darnell [Sun, 5 Jun 2011 22:41:25 +0000 (15:41 -0700)] 
Add a Template UIModule, allowing templates to be called with keyword
arguments instead of inheriting the caller's namespace with {% include %}.

14 years agoIntroduce {% module %} syntax for calling UIModules.
Ben Darnell [Sun, 5 Jun 2011 20:47:02 +0000 (13:47 -0700)] 
Introduce {% module %} syntax for calling UIModules.

Add linkify and xsrf_form_html as default modules.

14 years agoRefactor redundant code out of httpserver.py and wsgi.py to httputil.py
Ben Darnell [Sun, 5 Jun 2011 20:10:07 +0000 (13:10 -0700)] 
Refactor redundant code out of httpserver.py and wsgi.py to httputil.py

14 years agoTest multipart/form-data parsing in wsgi and fix it for python3
Ben Darnell [Sun, 5 Jun 2011 19:58:26 +0000 (12:58 -0700)] 
Test multipart/form-data parsing in wsgi and fix it for python3

14 years agoOnly listen on localhost so unittests don't cause firewall warnings
Ben Darnell [Sun, 5 Jun 2011 19:13:08 +0000 (12:13 -0700)] 
Only listen on localhost so unittests don't cause firewall warnings

14 years agoDocumentation fix
Ben Darnell [Sat, 4 Jun 2011 21:35:25 +0000 (14:35 -0700)] 
Documentation fix

14 years agoTest use of a custom escaping function
Ben Darnell [Wed, 1 Jun 2011 07:22:55 +0000 (00:22 -0700)] 
Test use of a custom escaping function

14 years agoAdd autoescape application setting and convert chatdemo to use it.
Ben Darnell [Tue, 31 May 2011 02:03:54 +0000 (19:03 -0700)] 
Add autoescape application setting and convert chatdemo to use it.

14 years agoAdd raw expressions to templates with {% raw [expr] %}
Ben Darnell [Tue, 31 May 2011 01:51:31 +0000 (18:51 -0700)] 
Add raw expressions to templates with {% raw [expr] %}

14 years agoFirst pass at template autoescaping
Ben Darnell [Mon, 30 May 2011 21:58:00 +0000 (14:58 -0700)] 
First pass at template autoescaping

14 years agoMake template.Loader and DictLoader share a common base class
Ben Darnell [Mon, 30 May 2011 21:07:10 +0000 (14:07 -0700)] 
Make template.Loader and DictLoader share a common base class

14 years agoFix template rendering for non-string expressions.
Ben Darnell [Mon, 30 May 2011 19:11:42 +0000 (12:11 -0700)] 
Fix template rendering for non-string expressions.

Template.generate() now always returns byte strings.

14 years agoExtract etag computation so it can be customized or disabled.
Ben Darnell [Mon, 30 May 2011 08:09:11 +0000 (01:09 -0700)] 
Extract etag computation so it can be customized or disabled.

14 years agoAllow the application to determine the encoding used for url parameters (previously...
Ben Darnell [Mon, 30 May 2011 06:32:22 +0000 (23:32 -0700)] 
Allow the application to determine the encoding used for url parameters (previously hard-coded to utf8).

HTTPRequest.arguments now maps from native strings to bytes.  That's slightly
inconsistent, but having byte strings as dictionary keys is awkward.

14 years agoAdd an encoding argument to tornado.escape.url_unescape.
Ben Darnell [Mon, 30 May 2011 04:57:35 +0000 (21:57 -0700)] 
Add an encoding argument to tornado.escape.url_unescape.

14 years agoAdd type checks for web.py methods.
Ben Darnell [Mon, 30 May 2011 02:33:42 +0000 (19:33 -0700)] 
Add type checks for web.py methods.

Undo some unnecessary unicodification from the python3 changes.

14 years agoType checks for httpserver.HTTPRequest fields
Ben Darnell [Mon, 30 May 2011 01:39:23 +0000 (18:39 -0700)] 
Type checks for httpserver.HTTPRequest fields

14 years agoCheck types of HTTPClient response objects and make them consistent
Ben Darnell [Mon, 30 May 2011 01:12:16 +0000 (18:12 -0700)] 
Check types of HTTPClient response objects and make them consistent

14 years agoMove most simple_httpclient tests to httpclient_test.py where they can
Ben Darnell [Mon, 30 May 2011 01:02:13 +0000 (18:02 -0700)] 
Move most simple_httpclient tests to httpclient_test.py where they can
be run against both AsyncHTTPClient implementations.

14 years agoAdd AI_ADDRCONFIG to getaddrinfo call, which may fix ipv6-related issues report on...
Ben Darnell [Mon, 30 May 2011 00:27:48 +0000 (17:27 -0700)] 
Add AI_ADDRCONFIG to getaddrinfo call, which may fix ipv6-related issues report on the mailing list

14 years agoTest template include/extend operations
Ben Darnell [Sun, 29 May 2011 23:07:20 +0000 (16:07 -0700)] 
Test template include/extend operations

14 years agoTest WSGIApplication and make it work on python3
Ben Darnell [Sun, 29 May 2011 22:54:53 +0000 (15:54 -0700)] 
Test WSGIApplication and make it work on python3

14 years agoMake WSGIContainer work on python 3
Ben Darnell [Sun, 29 May 2011 22:45:41 +0000 (15:45 -0700)] 
Make WSGIContainer work on python 3

14 years agoAdd a simple template test and make it pass in python 3
Ben Darnell [Sun, 29 May 2011 22:21:07 +0000 (15:21 -0700)] 
Add a simple template test and make it pass in python 3

14 years agoAdd script to run test suite with multiple python versions at once
Ben Darnell [Sun, 29 May 2011 22:04:24 +0000 (15:04 -0700)] 
Add script to run test suite with multiple python versions at once

14 years agoMake tornado.testing.main with no arguments work in python 3.2
Ben Darnell [Sun, 29 May 2011 21:02:27 +0000 (14:02 -0700)] 
Make tornado.testing.main with no arguments work in python 3.2

14 years agoDon't add an extra delimter when no arguments are given
Ben Darnell [Sun, 29 May 2011 01:24:07 +0000 (18:24 -0700)] 
Don't add an extra delimter when no arguments are given

14 years agoRemove execute permission from files not intended to be entry points
Ben Darnell [Sat, 28 May 2011 22:03:35 +0000 (15:03 -0700)] 
Remove execute permission from files not intended to be entry points

14 years agoAdd a test that imports all tornado modules to at least ensure there are no
Ben Darnell [Sat, 28 May 2011 21:59:49 +0000 (14:59 -0700)] 
Add a test that imports all tornado modules to at least ensure there are no
syntax errors in otherwise-untested modules like auth and websocket.

14 years agoMake OAuth2Mixin work even when OAUTH_AUTHORIZE_URL doesn't end with "?"
Ben Darnell [Sat, 28 May 2011 21:51:05 +0000 (14:51 -0700)] 
Make OAuth2Mixin work even when OAUTH_AUTHORIZE_URL doesn't end with "?"

Based on https://github.com/facebook/tornado/pull/269

14 years agoConvert path components to unicode for consistency with get_argument().
Ben Darnell [Sat, 28 May 2011 21:23:36 +0000 (14:23 -0700)] 
Convert path components to unicode for consistency with get_argument().

14 years agoFix HTTPServer on windows, where IPPROTO_IPV6 options are not available
Ben Darnell [Sat, 28 May 2011 20:40:38 +0000 (13:40 -0700)] 
Fix HTTPServer on windows, where IPPROTO_IPV6 options are not available

14 years agoFix decoding of non-ascii characters in query strings
Ben Darnell [Wed, 25 May 2011 05:29:53 +0000 (22:29 -0700)] 
Fix decoding of non-ascii characters in query strings

14 years agoInner headers for multipart/form-data default to utf-8
Ben Darnell [Tue, 24 May 2011 06:23:39 +0000 (23:23 -0700)] 
Inner headers for multipart/form-data default to utf-8

14 years agoFix and test encoding handling for multipart/form-data. Now works
Ben Darnell [Tue, 24 May 2011 05:08:22 +0000 (22:08 -0700)] 
Fix and test encoding handling for multipart/form-data.  Now works
with non-ascii data in all parts of the request in both python2 and python3.

14 years agoMake xhtml_escape work in python3; add test.
Ben Darnell [Sat, 21 May 2011 03:10:06 +0000 (20:10 -0700)] 
Make xhtml_escape work in python3; add test.

14 years agoUse the standard mime type application/json when producing json output
Ben Darnell [Thu, 19 May 2011 06:35:35 +0000 (23:35 -0700)] 
Use the standard mime type application/json when producing json output

14 years agoMerge pull request #260 from alanhogan/documentation-improvement
bdarnell [Thu, 19 May 2011 06:26:23 +0000 (23:26 -0700)] 
Merge pull request #260 from alanhogan/documentation-improvement

Document redirections and StaticFileHandler

14 years agoTypo, restore missing path setting, and mention the capturing group 260/head
Alan Hogan [Thu, 19 May 2011 02:51:31 +0000 (19:51 -0700)] 
Typo, restore missing path setting, and mention the capturing group

14 years agoAdd simple test application for websockets
Ben Darnell [Wed, 18 May 2011 06:14:02 +0000 (23:14 -0700)] 
Add simple test application for websockets

14 years agoFix websocket after string type changes introduced by python3 merge
Ben Darnell [Wed, 18 May 2011 06:13:36 +0000 (23:13 -0700)] 
Fix websocket after string type changes introduced by python3 merge

14 years agoRun SSL tests even when pycurl is not present.
Ben Darnell [Mon, 16 May 2011 03:10:42 +0000 (20:10 -0700)] 
Run SSL tests even when pycurl is not present.

14 years agoClient-side ipv6 support (disabled by default)
Ben Darnell [Mon, 16 May 2011 03:01:58 +0000 (20:01 -0700)] 
Client-side ipv6 support (disabled by default)

14 years agoServer-side ipv6 support.
Ben Darnell [Sun, 15 May 2011 07:54:29 +0000 (00:54 -0700)] 
Server-side ipv6 support.

Also support multiple bind addresses in one HTTPServer

14 years agoFix cookie handling after python3 encoding changes. Add tests.
Ben Darnell [Sun, 15 May 2011 23:59:43 +0000 (16:59 -0700)] 
Fix cookie handling after python3 encoding changes.  Add tests.

14 years agoAdd tornado.escape.native_str() for dealing with python 2 vs 3 issues.
Ben Darnell [Sun, 15 May 2011 23:58:29 +0000 (16:58 -0700)] 
Add tornado.escape.native_str() for dealing with python 2 vs 3 issues.

Rename _unicode() to to_unicode() so it doesn't look private, make its
implementation match utf8(), and document both functions.

14 years agoPython3-ify this test
Ben Darnell [Sun, 15 May 2011 23:30:41 +0000 (16:30 -0700)] 
Python3-ify this test

14 years agoHelp 2to3 with a tricky three-argument raise statement
Ben Darnell [Sun, 15 May 2011 23:30:13 +0000 (16:30 -0700)] 
Help 2to3 with a tricky three-argument raise statement

14 years agoPython3 doesn't have a useful basestring type any more :(
Ben Darnell [Sun, 15 May 2011 23:29:19 +0000 (16:29 -0700)] 
Python3 doesn't have a useful basestring type any more :(

14 years agoDocument how to fake other root files despite serving with StaticFileHandler
Alan Hogan [Sun, 15 May 2011 19:05:13 +0000 (12:05 -0700)] 
Document how to fake other root files despite serving with StaticFileHandler

14 years agoDocument RedirectHandler
Alan Hogan [Sun, 15 May 2011 19:04:01 +0000 (12:04 -0700)] 
Document RedirectHandler

14 years agoAdd keepalive support to benchmark, add other command-line args
Ben Darnell [Sun, 15 May 2011 05:53:29 +0000 (22:53 -0700)] 
Add keepalive support to benchmark, add other command-line args

14 years agoFix a StackContext leak introduced by the delayed IOStream callbacks
Ben Darnell [Sun, 15 May 2011 05:35:23 +0000 (22:35 -0700)] 
Fix a StackContext leak introduced by the delayed IOStream callbacks

14 years agoConvert http request bodies to utf8 earlier so content-length is correct
Ben Darnell [Sun, 15 May 2011 04:29:58 +0000 (21:29 -0700)] 
Convert http request bodies to utf8 earlier so content-length is correct

14 years agoSmall speedups
Ben Darnell [Sun, 15 May 2011 04:25:31 +0000 (21:25 -0700)] 
Small speedups

14 years agoFreeze the iostream write buffer when send() returns 0.
Ben Darnell [Sun, 15 May 2011 04:18:11 +0000 (21:18 -0700)] 
Freeze the iostream write buffer when send() returns 0.

14 years agoFix handling of closed connections with epoll. This fixes a problem with
Ben Darnell [Sun, 15 May 2011 03:52:42 +0000 (20:52 -0700)] 
Fix handling of closed connections with epoll.  This fixes a problem with
simple_httpclient and servers that close the connection after sending the
response.

14 years agoTolerate servers that don't include reason text in the status line.
Ben Darnell [Sun, 15 May 2011 03:21:05 +0000 (20:21 -0700)] 
Tolerate servers that don't include reason text in the status line.

14 years agoAutomatically run 2to3 when installing on python 3
Ben Darnell [Sun, 15 May 2011 01:47:12 +0000 (18:47 -0700)] 
Automatically run 2to3 when installing on python 3

14 years agoMerge branch 'python3'
Ben Darnell [Sun, 15 May 2011 01:06:34 +0000 (18:06 -0700)] 
Merge branch 'python3'

14 years agoSlightly faster utf8 function
Ben Darnell [Sat, 14 May 2011 23:58:23 +0000 (16:58 -0700)] 
Slightly faster utf8 function

14 years agoFix deprecation warnings in python 3
Ben Darnell [Sat, 14 May 2011 23:19:51 +0000 (16:19 -0700)] 
Fix deprecation warnings in python 3

14 years agotypes.NoneType no longer exists in python 3
Ben Darnell [Sat, 14 May 2011 23:15:39 +0000 (16:15 -0700)] 
types.NoneType no longer exists in python 3

14 years agoMerge branch 'master' into python3
Ben Darnell [Sat, 14 May 2011 23:04:54 +0000 (16:04 -0700)] 
Merge branch 'master' into python3

14 years agoDescribe redirections and the permanent argument
Alan Hogan [Thu, 12 May 2011 17:50:00 +0000 (10:50 -0700)] 
Describe redirections and the permanent argument

14 years agoMerge pull request #258 from kmike/master
bdarnell [Fri, 6 May 2011 05:51:26 +0000 (22:51 -0700)] 
Merge pull request #258 from kmike/master

Better error handling for websockets

14 years agoBetter error handling for exceptions in on_message for websockets: avoid extra IOErrors 258/head
Mikhail Korobov [Wed, 4 May 2011 15:17:51 +0000 (21:17 +0600)] 
Better error handling for exceptions in on_message for websockets: avoid extra IOErrors

14 years agoSpeed up a common case in iostream._merge_prefix
Ben Darnell [Mon, 2 May 2011 03:55:38 +0000 (20:55 -0700)] 
Speed up a common case in iostream._merge_prefix

14 years agoMemoize HTTPHeaders._normalize_name
Ben Darnell [Mon, 2 May 2011 03:48:55 +0000 (20:48 -0700)] 
Memoize HTTPHeaders._normalize_name

14 years agoStackContext speedups: special-case some common situations,
Ben Darnell [Mon, 2 May 2011 03:39:18 +0000 (20:39 -0700)] 
StackContext speedups: special-case some common situations,
and stop using function attributes.

14 years agoFix for python2.5: heapq used to use __le__ instead of __lt__
Ben Darnell [Sun, 1 May 2011 21:33:28 +0000 (14:33 -0700)] 
Fix for python2.5:  heapq used to use __le__ instead of __lt__

14 years agoMake a recently-added test pass in python3
Ben Darnell [Sun, 1 May 2011 21:09:11 +0000 (14:09 -0700)] 
Make a recently-added test pass in python3

14 years agoMerge branch 'master' into python3
Ben Darnell [Sun, 1 May 2011 21:06:00 +0000 (14:06 -0700)] 
Merge branch 'master' into python3

Conflicts:
tornado/simple_httpclient.py
tornado/web.py

14 years agoChange IOLoop._timeouts from a sorted list to a heapq.
Ben Darnell [Sun, 1 May 2011 20:54:46 +0000 (13:54 -0700)] 
Change IOLoop._timeouts from a sorted list to a heapq.

Closes #195

14 years agoRun all IOStream callbacks via IOLoop.add_callback.
Ben Darnell [Sun, 1 May 2011 19:55:08 +0000 (12:55 -0700)] 
Run all IOStream callbacks via IOLoop.add_callback.

Closes #252

14 years agoDocument the ability to modify XSRF protection by overriding check_xsrf_cookie.
Ben Darnell [Sun, 1 May 2011 19:17:00 +0000 (12:17 -0700)] 
Document the ability to modify XSRF protection by overriding check_xsrf_cookie.

Closes #254

14 years agoSupport https for UIModule javascript_files and css_files.
Ben Darnell [Sun, 1 May 2011 18:59:11 +0000 (11:59 -0700)] 
Support https for UIModule javascript_files and css_files.

Closes #256.

14 years agoMerge pull request #253 from mcella/patch-1.
bdarnell [Sun, 1 May 2011 18:51:16 +0000 (11:51 -0700)] 
Merge pull request #253 from mcella/patch-1.

RequestHandler.get_argument should raise an HTTP 400 Bad Request

14 years agoRequestHandler.get_argument should raise an HTTP 400 Bad Request if the argument... 253/head
Michele Cella [Thu, 28 Apr 2011 10:49:03 +0000 (03:49 -0700)] 
RequestHandler.get_argument should raise an HTTP 400 Bad Request if the argument is missing, not a misleading HTTP 404 Not Found.

14 years agoBetter check for missing messages in facebook demo
Ben Darnell [Mon, 25 Apr 2011 06:16:31 +0000 (23:16 -0700)] 
Better check for missing messages in facebook demo

14 years agoCheck to see if actions field is present in facebook demo
Ben Darnell [Mon, 25 Apr 2011 06:15:08 +0000 (23:15 -0700)] 
Check to see if actions field is present in facebook demo

Closes #251.

14 years agoAdd **kwargs to WebSocketHandler.__init__
Ben Darnell [Mon, 25 Apr 2011 06:13:13 +0000 (23:13 -0700)] 
Add **kwargs to WebSocketHandler.__init__

Closes #250.

14 years agoInfer option types from the default when possible.
Ben Darnell [Mon, 25 Apr 2011 06:11:42 +0000 (23:11 -0700)] 
Infer option types from the default when possible.

Closes #248.

14 years agoIgnore hidden directories (e.g. .svn) in load_gettext_translations.
Ben Darnell [Mon, 25 Apr 2011 05:57:12 +0000 (22:57 -0700)] 
Ignore hidden directories (e.g. .svn) in load_gettext_translations.

Closes #247.

14 years agoFix broken link
Ben Darnell [Sat, 16 Apr 2011 20:44:51 +0000 (13:44 -0700)] 
Fix broken link

14 years agostr.encode('base64') != base64.b64encode()
Ben Darnell [Sat, 16 Apr 2011 20:41:40 +0000 (13:41 -0700)] 
str.encode('base64') != base64.b64encode()

Add check for newlines in request headers.

Closes #246

14 years agoConvert WSGI content-length variable to an int at the right place
Ben Darnell [Sat, 16 Apr 2011 20:26:03 +0000 (13:26 -0700)] 
Convert WSGI content-length variable to an int at the right place

Closes #245

14 years agoMake template constructor accept unicode strings
Ben Darnell [Sat, 16 Apr 2011 20:23:39 +0000 (13:23 -0700)] 
Make template constructor accept unicode strings

Closes #244

14 years agoMove another curl hack (disabling Pragma: no-cache) to curl_httpclient.py
Ben Darnell [Thu, 31 Mar 2011 04:08:12 +0000 (21:08 -0700)] 
Move another curl hack (disabling Pragma: no-cache) to curl_httpclient.py

14 years agoAdd appengine config for /favicon.ico
Ben Darnell [Thu, 31 Mar 2011 04:04:42 +0000 (21:04 -0700)] 
Add appengine config for /favicon.ico

14 years agoadding favicon.ico for website 240/head
Peter Bengtsson [Wed, 30 Mar 2011 17:36:57 +0000 (18:36 +0100)] 
adding favicon.ico for website

14 years agoDisable Expect header in curl_httpclient.py without clearing all headers. 239/head
Neil Rahilly [Mon, 28 Mar 2011 21:13:06 +0000 (17:13 -0400)] 
Disable Expect header in curl_httpclient.py without clearing all headers.

Fixes previous fix (18f942b).

14 years agoFix Expect header bug in curl_httpclient.py. 237/head
Neil Rahilly [Mon, 28 Mar 2011 15:11:04 +0000 (11:11 -0400)] 
Fix Expect header bug in curl_httpclient.py.

setopt, when used with HTTPHEADER, takes a list, not a string.

14 years agoAdd support for username/password in url for simple_httpclient.
Ben Darnell [Mon, 28 Mar 2011 03:30:42 +0000 (20:30 -0700)] 
Add support for username/password in url for simple_httpclient.

I considered making this functionality opt-in, but decided to allow it
for consistency with curl.

Closes #230.

14 years agoDocument the fact that CSV files should not have spaces after commas
Ben Darnell [Fri, 25 Mar 2011 02:21:37 +0000 (19:21 -0700)] 
Document the fact that CSV files should not have spaces after commas

14 years agoMove curl Expect: header hack from httpclient.py to curl_httpclient.py.
Ben Darnell [Tue, 15 Mar 2011 06:06:05 +0000 (23:06 -0700)] 
Move curl Expect: header hack from httpclient.py to curl_httpclient.py.

Fixes: #233.
14 years agoMake AsyncTestCase call tearDown in super class. 232/head
Brian Beach [Mon, 14 Mar 2011 15:34:19 +0000 (11:34 -0400)] 
Make AsyncTestCase call tearDown in super class.

The setUp method was calling super, but tearDown wasn't.  Now they
both are.

This change includes a new unit test case to verify the fix.

14 years agoUpdate docstrings for get_user_locale and get_error_html.
Ben Darnell [Mon, 7 Mar 2011 02:31:51 +0000 (18:31 -0800)] 
Update docstrings for get_user_locale and get_error_html.

14 years agoUpdate facebook demo to use the graph api instead of the older api.
Ben Darnell [Thu, 3 Mar 2011 21:45:58 +0000 (13:45 -0800)] 
Update facebook demo to use the graph api instead of the older api.