]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
14 years agoA few fixes for FacebookGraphMixin 183/head
Romy Maxwell [Mon, 29 Nov 2010 09:44:51 +0000 (01:44 -0800)] 
A few fixes for FacebookGraphMixin

- Added error handler for _on_access_token
- Modified to allow for extra returned fields in the auth call
- Removed username, which seems to have been deprecated

14 years agoUse request.uri instead of request.path as default redirect for auth.py.
Ben Darnell [Mon, 29 Nov 2010 23:01:16 +0000 (15:01 -0800)] 
Use request.uri instead of request.path as default redirect for auth.py.

This allows the next parameter (added by @authenticated) to be preserved.

Closes #161.

14 years agoLog malformed HTTP requests more gracefully.
Ben Darnell [Mon, 29 Nov 2010 22:08:01 +0000 (14:08 -0800)] 
Log malformed HTTP requests more gracefully.

Malformed requests are now logged as a single INFO line (which
includes the IP address) instead of a verbose but uninformative stack
trace.

14 years agoTreat HEAD requests the same as GET for e.g. sending Etag headers.
Ben Darnell [Mon, 29 Nov 2010 21:49:06 +0000 (13:49 -0800)] 
Treat HEAD requests the same as GET for e.g. sending Etag headers.

Closes #180.

14 years agoPreserve the order of css_files from UIModules, like we already do for JS
Ben Darnell [Mon, 29 Nov 2010 21:34:15 +0000 (13:34 -0800)] 
Preserve the order of css_files from UIModules, like we already do for JS

14 years agoExpose the client's SSL certificate as HTTPRequest.get_ssl_certificate().
Ben Darnell [Mon, 29 Nov 2010 21:17:03 +0000 (13:17 -0800)] 
Expose the client's SSL certificate as HTTPRequest.get_ssl_certificate().

14 years agoFix bug in multipart/form-data requests. 176/head 177/head
Josh Staiger [Tue, 23 Nov 2010 00:31:08 +0000 (19:31 -0500)] 
Fix bug in multipart/form-data requests.

In Firefox and Safari, I'm seeing k = " boundary"
for multipart/form-data posts.

" boundary" != "boundary", so the mime fields
aren't parsed.

This commit gets rid of the leading space.

14 years agoUpdate pydoc to mention response.rethrow instead of reraise. 173/head
Josh Staiger [Sat, 20 Nov 2010 16:51:39 +0000 (11:51 -0500)] 
Update pydoc to mention response.rethrow instead of reraise.

14 years agoDon't assume 'boundary' is last field in Content-Type header.
Ben Darnell [Fri, 19 Nov 2010 22:04:53 +0000 (14:04 -0800)] 
Don't assume 'boundary' is last field in Content-Type header.

http://groups.google.com/group/python-tornado/browse_thread/thread/d0531e331c189c56#

Closes #172.

14 years agoMerge remote branch 'vijayp/master'
Ben Darnell [Thu, 18 Nov 2010 19:26:14 +0000 (11:26 -0800)] 
Merge remote branch 'vijayp/master'

14 years agoSet proxy to '' if no proxy is explicitly set in the request.
vijayp [Thu, 18 Nov 2010 18:58:44 +0000 (13:58 -0500)] 
Set proxy to '' if no proxy is explicitly set in the request.
If this is not done, curls with proxies set are re-inserted into the empty list, and are then reused. This causes connections to be randomly proxied, if some requests use a proxy, and others don't.

14 years agoAdd debug logging for queuing in simple_httpclient.
Ben Darnell [Wed, 17 Nov 2010 00:37:53 +0000 (16:37 -0800)] 
Add debug logging for queuing in simple_httpclient.

Also remove some old extremely verbose debug logging.

14 years agoAdd address parameter to Application.listen to match HTTPServer.listen
Ben Darnell [Wed, 17 Nov 2010 00:30:51 +0000 (16:30 -0800)] 
Add address parameter to Application.listen to match HTTPServer.listen

14 years agoFixes for python 2.5
Ben Darnell [Tue, 16 Nov 2010 05:32:51 +0000 (21:32 -0800)] 
Fixes for python 2.5

14 years agoAdd convenience method Application.listen(port) so most apps don't need
Ben Darnell [Tue, 16 Nov 2010 05:15:32 +0000 (21:15 -0800)] 
Add convenience method Application.listen(port) so most apps don't need
to explicitly touch HTTPServer.

14 years agoImplement max_clients limitation and queueing for SimpleAsyncHTTPClient
Ben Darnell [Tue, 16 Nov 2010 00:53:44 +0000 (16:53 -0800)] 
Implement max_clients limitation and queueing for SimpleAsyncHTTPClient

14 years agoPort pseudo-singleton magic from AsyncHTTPClient to SimpleAsyncHTTPClient
Ben Darnell [Tue, 16 Nov 2010 00:11:09 +0000 (16:11 -0800)] 
Port pseudo-singleton magic from AsyncHTTPClient to SimpleAsyncHTTPClient

14 years agoAdd timeout support to simple_httpclient
Ben Darnell [Sun, 14 Nov 2010 22:45:17 +0000 (14:45 -0800)] 
Add timeout support to simple_httpclient

14 years agoImprove docs for IOLoop.add/remove_timeout()
Ben Darnell [Sun, 14 Nov 2010 20:58:14 +0000 (12:58 -0800)] 
Improve docs for IOLoop.add/remove_timeout()

14 years agoFix typo in docs
Ben Darnell [Tue, 9 Nov 2010 19:52:34 +0000 (11:52 -0800)] 
Fix typo in docs

14 years agoAdd Amharic to tornado.locale's list of languages.
Ben Darnell [Mon, 8 Nov 2010 19:53:36 +0000 (11:53 -0800)] 
Add Amharic to tornado.locale's list of languages.

Closes #168.

14 years agoFix mangled language names in tornado.locale for Chinese, Japanese, Korean.
Ben Darnell [Mon, 8 Nov 2010 19:27:27 +0000 (11:27 -0800)] 
Fix mangled language names in tornado.locale for Chinese, Japanese, Korean.

For Chinese, also follow Google's example and reduce number of
variants to two: Simplified (zh_CN) and Traditional (zh_TW) (since I
couldn't find an appropriate copy-paste source for localized versions
of "Chinese (Hong Kong)" and "Chinese (Taiwan)")

Closes #168.

14 years agoSupport X-Forwarded-Proto in addition to X-Scheme
Ben Darnell [Mon, 8 Nov 2010 18:54:50 +0000 (10:54 -0800)] 
Support X-Forwarded-Proto in addition to X-Scheme

14 years agoSupport websockets over https.
Ben Darnell [Mon, 8 Nov 2010 18:51:02 +0000 (10:51 -0800)] 
Support websockets over https.

Closes #164.

14 years agoSupport "from x import y" in templates, not just "import x"
Ben Darnell [Mon, 8 Nov 2010 18:49:03 +0000 (10:49 -0800)] 
Support "from x import y" in templates, not just "import x"

14 years agoFix typo from commit 2b44fac
Ben Darnell [Sat, 6 Nov 2010 18:07:59 +0000 (11:07 -0700)] 
Fix typo from commit 2b44fac

Closes #169.

14 years agoCapture StackContext explicitly in HTTPConnection to prevent leaks from
Ben Darnell [Fri, 5 Nov 2010 18:19:18 +0000 (11:19 -0700)] 
Capture StackContext explicitly in HTTPConnection to prevent leaks from
one request to the next.

14 years agoCheck for a closed connection in _add_io_state.
Ben Darnell [Thu, 4 Nov 2010 18:47:34 +0000 (11:47 -0700)] 
Check for a closed connection in _add_io_state.

Closes #163.

14 years agofix linkify regex plus add unit test
Paul Buchheit [Thu, 4 Nov 2010 00:12:31 +0000 (17:12 -0700)] 
fix linkify regex plus add unit test

14 years agoDon't manually set Content-Length in StaticFileHandler.
Ben Darnell [Thu, 28 Oct 2010 04:23:29 +0000 (21:23 -0700)] 
Don't manually set Content-Length in StaticFileHandler.

Content-Length will be set automatically in RequestHandler.finish.  This
change fixes a bug in which RequestHandler.finish's Etag support strips
the response body without changing any headers.  Transfer headers
(including Content-Length and Transfer-Encoding) are the responsibility
of the framework, not the "application-level" handlers (which includes
StaticFileHandler).

Closes #160.

14 years agoMerge remote branch 'szeim/master'
Ben Darnell [Wed, 27 Oct 2010 19:11:59 +0000 (12:11 -0700)] 
Merge remote branch 'szeim/master'

14 years agoMerge remote branch 'fiam/master'
Ben Darnell [Wed, 27 Oct 2010 18:47:25 +0000 (11:47 -0700)] 
Merge remote branch 'fiam/master'

14 years agoSSLIOStream._do_ssl_handshake SSL error check 159/head
Imre SZEBENYI [Wed, 27 Oct 2010 11:36:12 +0000 (13:36 +0200)] 
SSLIOStream._do_ssl_handshake SSL error check

14 years agoFixed IOStream._handle_events (try/except block)
Imre SZEBENYI [Wed, 27 Oct 2010 11:34:47 +0000 (13:34 +0200)] 
Fixed IOStream._handle_events (try/except block)

Fixed IOStream._handle_events (try/except block) to prevent
infinite loop when an unhandled exception occurs

14 years agoMake exception handling in AsyncHTTPClient more customizable 158/head
Alberto García Hierro [Sat, 2 Oct 2010 16:57:35 +0000 (18:57 +0200)] 
Make exception handling in AsyncHTTPClient more customizable

Call handle_callback_exception() with the callback as argument
instead of hardcoding the call to logging.debug(). This way, users
can add their own exception handling code by subclassing
AsyncHTTPClient.

Default implementation for handle_callback_exception() calls that
same function on the IOLoop associated to this AsyncHTTPClient
instance, so users can handle any exceptions raised from their
callbacks just by overriding handle_callback_exception() in IOLoop.

14 years agoAdd gzip support to SimpleAsyncHTTPClient
Ben Darnell [Thu, 21 Oct 2010 23:00:42 +0000 (16:00 -0700)] 
Add gzip support to SimpleAsyncHTTPClient

14 years agoSupport minor HTTP request attributes in SimpleAsyncHTTPClient.
Ben Darnell [Thu, 21 Oct 2010 22:17:06 +0000 (15:17 -0700)] 
Support minor HTTP request attributes in SimpleAsyncHTTPClient.

Adds allow_nonstandard_methods and user_agent, and gives an explicit
warning for network_interface.

14 years agoAdd basic auth support to SimpleAsyncHTTPClient
Ben Darnell [Thu, 21 Oct 2010 21:58:30 +0000 (14:58 -0700)] 
Add basic auth support to SimpleAsyncHTTPClient

14 years agoUse AsyncHTTPTestCase.fetch instead of overriding it with a less useful
Ben Darnell [Thu, 21 Oct 2010 21:56:30 +0000 (14:56 -0700)] 
Use AsyncHTTPTestCase.fetch instead of overriding it with a less useful
version.

14 years agoReindent to 4 spaces
Ben Darnell [Thu, 21 Oct 2010 21:55:29 +0000 (14:55 -0700)] 
Reindent to 4 spaces

14 years agoAttempt to fix StaticFileHandler when os.path.sep != '/'.
Ben Darnell [Tue, 19 Oct 2010 21:12:33 +0000 (14:12 -0700)] 
Attempt to fix StaticFileHandler when os.path.sep != '/'.

14 years agoMerge remote branch 'mdg/default_filename'
Ben Darnell [Tue, 19 Oct 2010 21:09:47 +0000 (14:09 -0700)] 
Merge remote branch 'mdg/default_filename'

14 years agoAdd test case for encoding of request parameters and paths,
Ben Darnell [Tue, 19 Oct 2010 19:28:47 +0000 (12:28 -0700)] 
Add test case for encoding of request parameters and paths,
in response to a mailing list thread that raised questions about
handling of '%3F' and '?'.

14 years agoAdd a convenience method for synchronous fetches in AsyncHTTPTestCase
Ben Darnell [Tue, 19 Oct 2010 19:26:10 +0000 (12:26 -0700)] 
Add a convenience method for synchronous fetches in AsyncHTTPTestCase

14 years agoAdd test suite to tarball releases.
Ben Darnell [Tue, 19 Oct 2010 02:13:44 +0000 (19:13 -0700)] 
Add test suite to tarball releases.

14 years agomake StaticFileHandler support default filename 151/head 155/head
Matthew Graham [Sat, 9 Oct 2010 19:27:13 +0000 (15:27 -0400)] 
make StaticFileHandler support default filename

allows an app to configure a handler so that if a request to '/dir', the
handler will return '/dir/index.html' if it exists.  the default
filename, the 'index.html' part is configurable when creating the
Handler object.  Using the default filename is optional.

14 years agoSupport websockets over HTTP proxies.
Ben Darnell [Wed, 13 Oct 2010 21:58:49 +0000 (14:58 -0700)] 
Support websockets over HTTP proxies.

Adapted from
http://github.com/cbecker333/tornado/commit/ce02250ed3579706f800cfc5e622da834d79f933

14 years agoWindows compatibility for non-blocking IOStream.connect.
Ben Darnell [Wed, 13 Oct 2010 21:05:31 +0000 (14:05 -0700)] 
Windows compatibility for non-blocking IOStream.connect.

socket.connect returns a different errno, and read methods do not work
before the socket is connected (fixed docs and examples).

14 years agoRefactor async connect logic from SimpleAsyncHTTPClient to IOStream.
Ben Darnell [Wed, 13 Oct 2010 00:59:29 +0000 (17:59 -0700)] 
Refactor async connect logic from SimpleAsyncHTTPClient to IOStream.

Closes #146.

14 years agoReindent example in docstring, which apparently trips up emacs' indentation 149/head
Ben Darnell [Tue, 12 Oct 2010 00:24:11 +0000 (17:24 -0700)] 
Reindent example in docstring, which apparently trips up emacs' indentation
detection.

14 years agoMake Locale.format_date() behave sanely with dates in the future.
Ben Darnell [Tue, 12 Oct 2010 00:17:13 +0000 (17:17 -0700)] 
Make Locale.format_date() behave sanely with dates in the future.

Closes #150.

14 years agoRun all IOStream callbacks inside a NullContext so that exception
Ben Darnell [Tue, 12 Oct 2010 00:02:15 +0000 (17:02 -0700)] 
Run all IOStream callbacks inside a NullContext so that exception
handlers are run in the right order.

14 years agoMake USE_SIMPLE_HTTPCLIENT work without pycurl installed.
Ben Darnell [Mon, 11 Oct 2010 21:39:38 +0000 (14:39 -0700)] 
Make USE_SIMPLE_HTTPCLIENT work without pycurl installed.

14 years agoAdd initial version of non-curl-based AsyncHTTPClient.
Ben Darnell [Mon, 11 Oct 2010 21:16:52 +0000 (14:16 -0700)] 
Add initial version of non-curl-based AsyncHTTPClient.

14 years agoLimit the amount of data sent to socket.send at a time (for windows).
Ben Darnell [Mon, 11 Oct 2010 18:20:25 +0000 (11:20 -0700)] 
Limit the amount of data sent to socket.send at a time (for windows).

Closes #97.

14 years agoMove Links section from index.html to the wiki.
Ben Darnell [Fri, 8 Oct 2010 18:56:16 +0000 (11:56 -0700)] 
Move Links section from index.html to the wiki.
Remove links to unmaintained social media accounts.

14 years agoFix StackContext in IOStream. IOStream._handle_events now runs in a
Ben Darnell [Fri, 8 Oct 2010 18:25:52 +0000 (11:25 -0700)] 
Fix StackContext in IOStream.  IOStream._handle_events now runs in a
NullContext, and user callbacks are wrapped on entry to IOStream.

Also added logging for uncaught exceptions and made stack_context.wrap
None-safe.

http://groups.google.com/group/python-tornado/browse_thread/thread/9b5044def39c2ed9

14 years agoadd a linkify() function for converting text to html with link detection. Also change...
Paul Buchheit [Thu, 30 Sep 2010 21:41:13 +0000 (14:41 -0700)] 
add a linkify() function for converting text to html with link detection. Also changed xhtml_escape to not convert return value to utf8, since pages should be assembed in unicode and not utf8 encoded until they are ready to write().

14 years agoHandle IOStream.read_bytes(0) gracefully.
Ben Darnell [Wed, 29 Sep 2010 03:11:42 +0000 (20:11 -0700)] 
Handle IOStream.read_bytes(0) gracefully.

14 years agoMake AsyncTestCase.stop() prefer _arg over **kwargs, even when the former
Ben Darnell [Wed, 29 Sep 2010 03:10:56 +0000 (20:10 -0700)] 
Make AsyncTestCase.stop() prefer _arg over **kwargs, even when the former
is not truthy.

14 years agoRemove references to async_callback from documentation
Ben Darnell [Tue, 28 Sep 2010 22:46:21 +0000 (15:46 -0700)] 
Remove references to async_callback from documentation

14 years agoIn the select()-based IOLoop, always listen for reads so we can tell
Ben Darnell [Mon, 27 Sep 2010 21:08:56 +0000 (14:08 -0700)] 
In the select()-based IOLoop, always listen for reads so we can tell
when the other side closed the connection.

Closes #37.

14 years agoClose the IOStream when the remote connection is closed.
Ben Darnell [Mon, 27 Sep 2010 19:46:20 +0000 (12:46 -0700)] 
Close the IOStream when the remote connection is closed.

This was a regression introduced by http://github.com/facebook/tornado/commit/f6f7f83719a48083f3e5ed999e19c0ec67de9b9b

Closes #143.

14 years agoFactor port-selection logic out of AsyncHTTPTestCase so it can be used
Ben Darnell [Mon, 27 Sep 2010 19:04:43 +0000 (12:04 -0700)] 
Factor port-selection logic out of AsyncHTTPTestCase so it can be used
from lower-level tests

14 years agoMake StackContext more usable in libraries by reducing the need to
Ben Darnell [Fri, 24 Sep 2010 18:42:33 +0000 (11:42 -0700)] 
Make StackContext more usable in libraries by reducing the need to
explicitly use IOLoop.add_callback or NullContext.

This change also simplifies and codifies the ordering behavior of
StackContext:  When a wrapped callback is executed, the innermost
StackContexts are those that were active when the callback was
wrapped.  Additional StackContexts (possibly including other copies
of the same contexts) may be present in outer levels of the stack, but
since the role of most StackContexts is to catch exceptions this should
not have any effect.

Backwards compatibility note:  StackContexts that do something other than
catch exceptions may need to be modified to be reentrant.

14 years agoUpdate installation instructions in README.
Ben Darnell [Thu, 23 Sep 2010 16:37:32 +0000 (09:37 -0700)] 
Update installation instructions in README.

Closes #142.

14 years agoFix default_host redirect.
Ben Darnell [Tue, 21 Sep 2010 19:15:02 +0000 (12:15 -0700)] 
Fix default_host redirect.

Closes #141.

14 years agoFix improperly-renamed variable in set_blocking_signal_threshold
Ben Darnell [Sat, 18 Sep 2010 20:22:30 +0000 (13:22 -0700)] 
Fix improperly-renamed variable in set_blocking_signal_threshold

14 years agoMake xhtml_escape available in the template namespace under its own name
Ben Darnell [Fri, 17 Sep 2010 21:46:43 +0000 (14:46 -0700)] 
Make xhtml_escape available in the template namespace under its own name
in addition to "escape".

14 years agoMove cookie-signing code from set_secure_cookie to a new method for non-cookie use...
Ben Darnell [Fri, 17 Sep 2010 21:45:45 +0000 (14:45 -0700)] 
Move cookie-signing code from set_secure_cookie to a new method for non-cookie use cases

14 years agoDocument the entire template namespace
Ben Darnell [Fri, 17 Sep 2010 18:02:43 +0000 (11:02 -0700)] 
Document the entire template namespace

14 years agoGeneralize IOLoop.set_blocking_log_threshold by allowing user-specified
Ben Darnell [Fri, 17 Sep 2010 00:14:31 +0000 (17:14 -0700)] 
Generalize IOLoop.set_blocking_log_threshold by allowing user-specified
signal handlers (via a new set_blocking_signal_threshold method).

Also support a handler value of None to kill the process (SIG_DFL)

14 years agoRefactor IOStream reading logic to fix problems with SSL sockets.
Ben Darnell [Thu, 16 Sep 2010 20:45:13 +0000 (13:45 -0700)] 
Refactor IOStream reading logic to fix problems with SSL sockets.

Now reads from the socket until it would block.  This ensures that we
see data in SSLSocket's internal buffers, which are otherwise invisible
to functions like select().

Added a test that makes a large POST request to an SSL server, which was
the scenario that originally exposed this bug.

14 years agoFixed another two win32_support import
Szabó Antal [Sun, 12 Sep 2010 22:32:39 +0000 (00:32 +0200)] 
Fixed another two win32_support import

14 years agoFixed win32_support import
Szabó Antal [Sun, 12 Sep 2010 22:24:22 +0000 (00:24 +0200)] 
Fixed win32_support import

14 years agoAdded binary flag to _waker_reader and _waker_writer
Szabó Antal [Sun, 12 Sep 2010 21:58:31 +0000 (23:58 +0200)] 
Added binary flag to _waker_reader and _waker_writer

14 years agoReplaced map() in web.py with for loop
Szabó Antal [Sun, 12 Sep 2010 21:34:38 +0000 (23:34 +0200)] 
Replaced map() in web.py with for loop

14 years agoChanged e[0] to e.args[0]
Szabó Antal [Sun, 12 Sep 2010 21:22:30 +0000 (23:22 +0200)] 
Changed e[0] to e.args[0]

14 years agoUpdate docs to mention requirement of pycurl 7.18.2.
Ben Darnell [Tue, 14 Sep 2010 17:42:56 +0000 (10:42 -0700)] 
Update docs to mention requirement of pycurl 7.18.2.

14 years agoMerge remote branch 'fiam/master'
Ben Darnell [Mon, 13 Sep 2010 20:41:14 +0000 (13:41 -0700)] 
Merge remote branch 'fiam/master'

14 years agoWhen forking multiple processes, properly initialize the random seed 138/head
Alberto García Hierro [Mon, 13 Sep 2010 18:10:23 +0000 (20:10 +0200)] 
When forking multiple processes, properly initialize the random seed

Avoid seeding the random module with the same value in all processes.
If available, use the same method used by random.py, otherwise
generate a seed using the current time in milliseconds and the pid.

14 years agoAvoid raising a KeyError when there's no session expiration date
Alberto García Hierro [Mon, 13 Sep 2010 18:09:40 +0000 (20:09 +0200)] 
Avoid raising a KeyError when there's no session expiration date

It happens when the token is requested with the 'offline_access'
extended permission.

14 years agoFix calls to getattr (which, unlike dict.get, does not default to None).
Ben Darnell [Mon, 13 Sep 2010 18:18:46 +0000 (11:18 -0700)] 
Fix calls to getattr (which, unlike dict.get, does not default to None).

Reported in issue #137.

14 years agoAdd download url to setup.py for pypi
Ben Darnell [Thu, 9 Sep 2010 17:06:47 +0000 (10:06 -0700)] 
Add download url to setup.py for pypi

14 years agoCheck self._running before rescheduling a PeriodicCallback, so stop() can
Ben Darnell [Wed, 8 Sep 2010 22:06:21 +0000 (15:06 -0700)] 
Check self._running before rescheduling a PeriodicCallback, so stop() can
be called from inside the callback.

Closes #135.

14 years agoBump version number to 1.1 v1.1.0
Ben Darnell [Wed, 8 Sep 2010 00:05:12 +0000 (17:05 -0700)] 
Bump version number to 1.1

14 years agoDisable SSL test on versions of libcurl with blocking SSL handshakes.
Ben Darnell [Wed, 8 Sep 2010 00:02:50 +0000 (17:02 -0700)] 
Disable SSL test on versions of libcurl with blocking SSL handshakes.
(using gnutls instead of openssl and libcurl < 7.21.0).

14 years agoDisable SSL test on python 2.5
Ben Darnell [Tue, 7 Sep 2010 23:01:22 +0000 (16:01 -0700)] 
Disable SSL test on python 2.5

14 years agoUse the older name for threading.activeCount for compatibility with python 2.5
Ben Darnell [Tue, 7 Sep 2010 23:01:04 +0000 (16:01 -0700)] 
Use the older name for threading.activeCount for compatibility with python 2.5

14 years agoFix error in comment
Ben Darnell [Tue, 7 Sep 2010 22:19:21 +0000 (15:19 -0700)] 
Fix error in comment

14 years agoFix typo in websocket.py
Ben Darnell [Mon, 6 Sep 2010 18:24:09 +0000 (11:24 -0700)] 
Fix typo in websocket.py

Closes #133.

14 years agoRemove superfluous lambdas in tornado.escape.
Ben Darnell [Mon, 6 Sep 2010 07:00:52 +0000 (00:00 -0700)] 
Remove superfluous lambdas in tornado.escape.

Closes #132.

14 years agoDocument why RequestHandler.write does not convert lists to JSON.
Ben Darnell [Sun, 5 Sep 2010 03:38:59 +0000 (20:38 -0700)] 
Document why RequestHandler.write does not convert lists to JSON.

14 years agoAdd more documentation for request.files.
Ben Darnell [Sat, 4 Sep 2010 19:19:46 +0000 (12:19 -0700)] 
Add more documentation for request.files.

14 years agoauth.py updates for OAuth 1.0a and 2.0.
Joe Bowman [Tue, 31 Aug 2010 15:38:06 +0000 (11:38 -0400)] 
auth.py updates for OAuth 1.0a and 2.0.

OAuthMixin now supports both 1.0a and 1.0 (defaults to 1.0a).  TwitterMixin
and GoogleMixin now use 1.0a, FriendfeedMixin remains at 1.0.  This adds
support for the callback_uri parameter to TwitterMixin.

New classes OAuth2Mixin and FacebookGraphMixin are introduced for the new
Facebook APIs.

Backwards compatibility notes:

Pending authorizations begun prior to this change will not be able to
be completed after it (tokens issued under prior versions of this code
will still work; this warning applies only to users who have started
but not yet completed their initial authorizations).

If you have used OAuthMixin directly (not one of the subclasses in this
module) to access a service that does not support OAuth 1.0a, set
_OAUTH_VERSION = "1.0" in your subclass.

Pull requests:
http://github.com/facebook/tornado/pull/126
http://github.com/facebook/tornado/pull/128
http://github.com/facebook/tornado/pull/130

Written by Joe Bowman, rebased from http://github.com/joerussbowman/tornado/commit/1572ecc6726f1ab33d2153798af0f13ad9e75ab6 by Ben Darnell.

14 years agoRemove the statement that tornado has only been tested with firefox.
Ben Darnell [Wed, 1 Sep 2010 22:27:32 +0000 (15:27 -0700)] 
Remove the statement that tornado has only been tested with firefox.

14 years agoRemove __del__ method from HTTPResponse. Closing cStringIO objects isn't
Ben Darnell [Wed, 1 Sep 2010 22:16:57 +0000 (15:16 -0700)] 
Remove __del__ method from HTTPResponse.  Closing cStringIO objects isn't
really necessary, and the presence of a __del__ method prevents python's
GC from breaking cyclical references (which happen on errors as HTTPError
and HTTPResponse refer to each other).

Closes #125.

14 years agoUpdate class docstring for HTTPServer.
Ben Darnell [Mon, 30 Aug 2010 19:18:21 +0000 (12:18 -0700)] 
Update class docstring for HTTPServer.

Closes #123.

14 years agoadding support for http method OPTIONS used by firefox, safari, for cross domain
Aaron Raddon [Tue, 22 Dec 2009 18:40:59 +0000 (10:40 -0800)] 
adding support for http method OPTIONS used by firefox, safari, for cross domain

Closes #46.

14 years agoFix reference to slice.indices.
Ben Darnell [Thu, 26 Aug 2010 18:52:41 +0000 (11:52 -0700)] 
Fix reference to slice.indices.

Is this used anywhere?

Closes: #13.