Commit Graph

19 Commits

Author SHA1 Message Date
Ali Ebrahim 3a881d9cb5 test Content-Type for static compressed files 2015-07-30 13:12:56 -07:00
Ben Darnell ecb3ea7543 Fix path traversal check in StaticFileHandler.
Previously StaticFileHandler would allow access to files whose name
starts with the static root directory, not just those that are actually
in the directory.

The bug was introduced in Tornado 3.1 via commits 7b03cd62fb and
60952528.
2015-07-17 11:36:53 -04:00
Alex Brandt 8e4ff358f6 add docs recursively to MANIFEST.in
When packaging tornado for Gentoo I found the documentation was not
available in the sdist provided on pypi.  This adds the documentation so
that users can choose to install it locally.
2015-05-07 10:25:39 -05:00
Ben Darnell ec4b7e4643 Remove ca-certificates bundle and instead depend on the certifi package. 2014-04-27 21:03:08 -04:00
Ben Darnell 0ca7fa01d1 Replace cython-based extension module with a hand-written one.
This avoids the complexity of ensuring that cython is installed
at build time.
2013-11-05 17:58:31 -05:00
Ben Darnell b3520e5ded Remvoe auto2to3 exclusion rules.
auto2to3 is no longer a part of the Tornado development process,
and the MANIFEST exclusion rule just results in scary-looking warnings
when installing.
2013-10-26 22:47:42 -04:00
Ben Darnell e8dc5e427d Add cython-based speedup for websocket mask function.
This optimization is currently activated only if Cython is present
when Tornado is installed.
2013-10-26 22:13:14 -04:00
Ben Darnell 1ccf71a5b9 Add method StaticFileHandler.get_content_version.
This method is easier for subclasses to override (the base class still
handles caching) and lets us use the post-validation absolute path,
fixing some issues with default_filename support.

Improve StaticFileHandler test coverage.
2013-05-19 12:50:43 -04:00
Ben Darnell 6a8bfce58a Include readme in the setup.py long_description field.
This should let pypi pick it up automatically on upload.
2013-03-29 09:48:45 -04:00
Ben Darnell dd388bf184 Fix options.parse_config_file on Python 3.
Add a test for this function.

Closes #702.
2013-03-27 22:55:04 -04:00
Ben Darnell b07a4c36cc Remove epoll.c from MANIFEST.in 2013-02-13 13:31:02 -05:00
Ben Darnell ef9df4d014 Encourage "python -m tornado.test.runtests" as the way to run the tests.
Remove execute bit from tornado/test/runtests.py, which would unexpectedly
run the tests from a globally-installed version of tornado when run directly.
Add a new runtests.sh to make the recommended behavior more discoverable.
Remove run_pyversion_tests.py, which has been superceded by tox.
Update docs.

Closes #545.
2012-06-24 18:45:27 -07:00
Ben Darnell 489997d18d Fix load_gettext_translations on python 3 2012-06-14 01:41:04 -07:00
Ben Darnell 562d9602de Better ($LANG-independent) fix for csv translation loading on py3. 2012-06-14 01:03:17 -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 c14931142a Add tests for static file functionality 2011-08-14 14:20:09 -07:00
Ben Darnell f376841b2c Add a config file to run tornado tests under multiple python versions with tox.
Also fix a setup.py problem that was leaving files out of the sdist output.
2011-07-17 16:52:56 -07:00
Jon Parise 73d3c82bc2 Removing the *.png pattern for the 'demos' line.
Because there aren't any .png files in the 'demos' hierarchy, this was causing
a warning when the 'egg_info' setup command was run.
2011-02-11 17:53:38 -08:00
Bret Taylor 2afa973493 Move Tornado project to Github 2009-09-10 00:50:51 -07:00