Commit Graph

569 Commits

Author SHA1 Message Date
Ben Darnell f6b365158d More autodoc fixes 2011-06-10 00:13:20 -07:00
Ben Darnell 050797cc5e Use coverage checker instead of automatic member extraction 2011-06-09 11:26:35 -07:00
Ben Darnell 53f5f3ca3f Fix up docs for web.py 2011-06-09 01:19:26 -07:00
Ben Darnell 4fec6aeb98 Skeletal autogenerated reference documentation 2011-06-08 23:58:58 -07:00
Ben Darnell b92e70d07c Fix a non-ascii docstring 2011-06-08 23:58:30 -07:00
Ben Darnell 02ce53b1fd Add the ability to escape template commands with {{! and {%! 2011-06-07 23:27:05 -07:00
Ben Darnell 4264418a88 Merge remote-tracking branch 'inferno-/master' 2011-06-07 21:57:22 -07:00
Rickard B a04baf5f84 Replace IOStream._read_buffer_size() with a simple counter to speed up performance when buffer contains many chunks. 2011-06-07 12:22:23 +02:00
Ben Darnell bc0ac36775 Remove dead code 2011-06-05 16:20:37 -07:00
Ben Darnell cdc1dbf589 Remove unused imports, add a few missing ones 2011-06-05 16:11:05 -07:00
Ben Darnell 5664bf0781 Add a Template UIModule, allowing templates to be called with keyword
arguments instead of inheriting the caller's namespace with {% include %}.
2011-06-05 15:41:25 -07:00
Ben Darnell ce3e1dedaf Introduce {% module %} syntax for calling UIModules.
Add linkify and xsrf_form_html as default modules.
2011-06-05 13:47:02 -07:00
Ben Darnell 4686042faf Refactor redundant code out of httpserver.py and wsgi.py to httputil.py 2011-06-05 13:10:07 -07:00
Ben Darnell 41b4af9c0f Test multipart/form-data parsing in wsgi and fix it for python3 2011-06-05 12:58:26 -07:00
Ben Darnell 6268052ca9 Only listen on localhost so unittests don't cause firewall warnings 2011-06-05 12:13:08 -07:00
Ben Darnell 0f37846547 Documentation fix 2011-06-04 14:35:25 -07:00
Ben Darnell b26cda15f1 Test use of a custom escaping function 2011-06-01 00:22:55 -07:00
Ben Darnell 6a85be4577 Add autoescape application setting and convert chatdemo to use it. 2011-05-30 19:03:54 -07:00
Ben Darnell ebe191e1bf Add raw expressions to templates with {% raw [expr] %} 2011-05-30 18:51:31 -07:00
Ben Darnell 708cd9e34a First pass at template autoescaping 2011-05-30 14:58:00 -07:00
Ben Darnell 3acda21a2e Make template.Loader and DictLoader share a common base class 2011-05-30 14:07:10 -07:00
Ben Darnell 25494d18f2 Fix template rendering for non-string expressions.
Template.generate() now always returns byte strings.
2011-05-30 12:11:42 -07:00
Ben Darnell 619bbf7c00 Extract etag computation so it can be customized or disabled. 2011-05-30 01:09:11 -07:00
Ben Darnell 2f8dd6e4c0 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.
2011-05-29 23:32:22 -07:00
Ben Darnell a8603159f4 Add an encoding argument to tornado.escape.url_unescape. 2011-05-29 21:57:35 -07:00
Ben Darnell d5a94e4253 Add type checks for web.py methods.
Undo some unnecessary unicodification from the python3 changes.
2011-05-29 19:33:42 -07:00
Ben Darnell 79073dbef9 Type checks for httpserver.HTTPRequest fields 2011-05-29 18:39:23 -07:00
Ben Darnell e5265194d6 Check types of HTTPClient response objects and make them consistent 2011-05-29 18:12:16 -07:00
Ben Darnell 014b76d76d Move most simple_httpclient tests to httpclient_test.py where they can
be run against both AsyncHTTPClient implementations.
2011-05-29 18:02:13 -07:00
Ben Darnell f09a4a92a9 Add AI_ADDRCONFIG to getaddrinfo call, which may fix ipv6-related issues report on the mailing list 2011-05-29 17:27:48 -07:00
Ben Darnell bced671daa Test template include/extend operations 2011-05-29 16:07:20 -07:00
Ben Darnell 6f7e8850de Test WSGIApplication and make it work on python3 2011-05-29 15:54:53 -07:00
Ben Darnell cab718aea6 Make WSGIContainer work on python 3 2011-05-29 15:45:41 -07:00
Ben Darnell 6439fd3262 Add a simple template test and make it pass in python 3 2011-05-29 15:21:07 -07:00
Ben Darnell 63a161f596 Add script to run test suite with multiple python versions at once 2011-05-29 15:04:24 -07:00
Ben Darnell 05fd0fcb2a Make tornado.testing.main with no arguments work in python 3.2 2011-05-29 14:02:27 -07:00
Ben Darnell 155c20fe89 Don't add an extra delimter when no arguments are given 2011-05-28 18:24:07 -07:00
Ben Darnell 27bf4d85e2 Remove execute permission from files not intended to be entry points 2011-05-28 15:03:35 -07:00
Ben Darnell 1d4d241a0b 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.
2011-05-28 14:59:49 -07:00
Ben Darnell 68a268f7dc Make OAuth2Mixin work even when OAUTH_AUTHORIZE_URL doesn't end with "?"
Based on https://github.com/facebook/tornado/pull/269
2011-05-28 14:51:05 -07:00
Ben Darnell e36c9b462e Convert path components to unicode for consistency with get_argument(). 2011-05-28 14:23:36 -07:00
Ben Darnell 298a438de8 Fix HTTPServer on windows, where IPPROTO_IPV6 options are not available 2011-05-28 13:40:38 -07:00
Ben Darnell 50c2e49bf0 Fix decoding of non-ascii characters in query strings 2011-05-24 22:29:53 -07:00
Ben Darnell ca2be3e99e Inner headers for multipart/form-data default to utf-8 2011-05-23 23:23:39 -07:00
Ben Darnell a4d4c2379a 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.
2011-05-23 22:08:22 -07:00
Ben Darnell 381f01f1d5 Make xhtml_escape work in python3; add test. 2011-05-20 20:10:06 -07:00
Ben Darnell f5fd90fec4 Use the standard mime type application/json when producing json output 2011-05-18 23:35:35 -07:00
bdarnell c3ec7ffdcf Merge pull request #260 from alanhogan/documentation-improvement
Document redirections and StaticFileHandler
2011-05-18 23:26:23 -07:00
Alan Hogan 4f911478e1 Typo, restore missing path setting, and mention the capturing group 2011-05-18 19:51:31 -07:00
Ben Darnell cad4a30879 Add simple test application for websockets 2011-05-17 23:14:02 -07:00