Commit Graph

472 Commits

Author SHA1 Message Date
Ben Darnell fb9e40b701 Document the ability to modify XSRF protection by overriding check_xsrf_cookie.
Closes #254
2011-05-01 12:17:00 -07:00
Ben Darnell bae1b57193 Support https for UIModule javascript_files and css_files.
Closes #256.
2011-05-01 11:59:11 -07:00
bdarnell f04b2dc456 Merge pull request #253 from mcella/patch-1.
RequestHandler.get_argument should raise an HTTP 400 Bad Request
2011-05-01 11:51:16 -07:00
Michele Cella 1c44640968 RequestHandler.get_argument should raise an HTTP 400 Bad Request if the argument is missing, not a misleading HTTP 404 Not Found. 2011-04-28 03:49:03 -07:00
Ben Darnell e805590e69 Better check for missing messages in facebook demo 2011-04-24 23:16:31 -07:00
Ben Darnell cd94d92b9b Check to see if actions field is present in facebook demo
Closes #251.
2011-04-24 23:15:08 -07:00
Ben Darnell b8faecd76f Add **kwargs to WebSocketHandler.__init__
Closes #250.
2011-04-24 23:13:29 -07:00
Ben Darnell 8a2c4172e1 Infer option types from the default when possible.
Closes #248.
2011-04-24 23:11:42 -07:00
Ben Darnell f7d25fcb57 Ignore hidden directories (e.g. .svn) in load_gettext_translations.
Closes #247.
2011-04-24 22:57:12 -07:00
Ben Darnell a0e6359755 Fix broken link 2011-04-16 13:44:51 -07:00
Ben Darnell 8b4a66cb53 str.encode('base64') != base64.b64encode()
Add check for newlines in request headers.

Closes #246
2011-04-16 13:41:40 -07:00
Ben Darnell 8eef796afd Convert WSGI content-length variable to an int at the right place
Closes #245
2011-04-16 13:26:03 -07:00
Ben Darnell 3ae67873bc Make template constructor accept unicode strings
Closes #244
2011-04-16 13:23:55 -07:00
Ben Darnell 2afc7babc1 Move another curl hack (disabling Pragma: no-cache) to curl_httpclient.py 2011-03-30 21:08:12 -07:00
Ben Darnell ef895e29b6 Add appengine config for /favicon.ico 2011-03-30 21:04:42 -07:00
Peter Bengtsson 2ac99d86de adding favicon.ico for website 2011-03-30 18:36:57 +01:00
Neil Rahilly c5b9847788 Disable Expect header in curl_httpclient.py without clearing all headers.
Fixes previous fix (18f942b).
2011-03-28 17:13:06 -04:00
Neil Rahilly 18f942b26c Fix Expect header bug in curl_httpclient.py.
setopt, when used with HTTPHEADER, takes a list, not a string.
2011-03-28 11:21:50 -04:00
Ben Darnell 8eb6dd249e 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.
2011-03-27 20:30:42 -07:00
Ben Darnell 5970af4e7d Document the fact that CSV files should not have spaces after commas 2011-03-24 19:21:37 -07:00
Ben Darnell 425f069e9d Move curl Expect: header hack from httpclient.py to curl_httpclient.py.
Fixes: #233.
2011-03-14 23:06:05 -07:00
Brian Beach 6f0a8a752d 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.
2011-03-14 11:34:19 -04:00
Ben Darnell 6923539ba6 Update docstrings for get_user_locale and get_error_html. 2011-03-06 18:31:51 -08:00
Ben Darnell f43dd1414a Update facebook demo to use the graph api instead of the older api. 2011-03-03 13:45:58 -08:00
Ben Darnell e3397c4698 Merge commit 'v1.2.1' 2011-03-03 12:49:58 -08:00
Ben Darnell f36fb66f02 Set version number to 1.2.1 2011-03-03 12:41:26 -08:00
Ben Darnell 7d304034a8 In FacebookGraphMixin, explicitly request required user fields.
This is necessary due to a recent change in the facebook API.

Closes #227.
2011-03-03 12:38:31 -08:00
Ben Darnell 6d0f40418e Ignore auto2to3 cache files 2011-02-23 22:53:59 -08:00
Ben Darnell 8792d74f97 Test improvement: order-independent comparison, better cleanup.
For some reason the results are coming back out of order in python2.5
(select vs kqueue, maybe?)
2011-02-23 21:00:57 -08:00
Ben Darnell 130040a889 Python3 fixes in IOLoop
* __lt__ instead of __cmp__
* Write bytes instead of str to waker pipe
* Reading from the waker pipe returns '' at EOF instead of raising error
2011-02-23 17:23:36 -08:00
Ben Darnell 6822bb742e Fix references to str() type for python3 2011-02-23 16:59:49 -08:00
Ben Darnell a72cc17f72 Fix encoding issues in options.py for python3. 2011-02-23 16:53:32 -08:00
Ben Darnell e42c99ffca Make SimpleAsyncHTTPClient the default.
Get rid of the environment variable hack for selecting client
implementations.
2011-02-23 14:51:35 -08:00
Ben Darnell 9fc882a4ac Add a new method to configure AsyncHTTPClient.
Deprecate most keyword arguments to AsyncHTTPClient in favor of the new
configure method.
2011-02-23 14:50:43 -08:00
Ben Darnell a785a128d5 Add a utility function to import an object by name. 2011-02-23 14:22:23 -08:00
Ben Darnell bfb171fb90 Move AsyncHTTPClient creation logic to httpclient.py. 2011-02-23 14:05:57 -08:00
Ben Darnell e7ae6c91c9 OPTIONS should not require an XSRF token.
Closes #225.
2011-02-23 10:08:00 -08:00
Ben Darnell fb8736cdf1 Check for EOF in the kqueue-based IOLoop to avoid incorrectly calling
the connect callback when the connection was refused.

Closes #223.
2011-02-22 13:35:41 -08:00
Ben Darnell 2f4835a34b Read a fixed number of bytes for wsgi input, since some wsgi containers
do not signal EOF.
2011-02-22 13:01:05 -08:00
Ben Darnell 83d4e933f6 Move USE_SIMPLE_HTTPCLIENT environment check out of curl_httpclient 2011-02-22 12:14:32 -08:00
Ben Darnell b9ba025858 Implement synchronous HTTPClient in terms of AsyncHTTPClient.
Move curl_httpclient.main to httpclient.py
2011-02-22 11:45:48 -08:00
Ben Darnell cf915bff62 Fix imports 2011-02-22 11:32:01 -08:00
Ben Darnell 60c7e91182 Move request and response classes to httpclient.py 2011-02-22 11:23:32 -08:00
Ben Darnell c62fd2671e Make tornado.escape.utf8 None-safe and use it in curl_httpclient. 2011-02-22 11:21:54 -08:00
Ben Darnell 3facb21406 Rename httpclient to curl_httpclient 2011-02-22 11:18:25 -08:00
Ben Darnell cc2363a147 Revert "Declare dependencies in setup.py for automatic installation."
This reverts commit 19f850e19b.

This turned out to be more trouble than it's worth, since it doesn't
interact well with external installations of pycurl (e.g. from a .deb).
These dependencies are going away soon anyway.
2011-02-22 11:00:02 -08:00
Ben Darnell f5436204e6 Update version number to 1.2 2011-02-20 12:56:36 -08:00
Ben Darnell 210c5c827b Document the fact that tornado can be installed with pip/etc. 2011-02-20 12:49:53 -08:00
Ben Darnell d8b6d985f1 Check that the default certificates file exists in a unit test. 2011-02-20 12:33:00 -08:00
Ben Darnell 19f850e19b Declare dependencies in setup.py for automatic installation. 2011-02-20 12:16:43 -08:00