Commit graph

402 commits

Author SHA1 Message Date
Armin Ronacher
b146d8277a Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
Armin Ronacher
301e244df3 Consistent use of encoding naming 2012-10-07 22:59:52 +02:00
Armin Ronacher
3afcbf160e Extra safety for safe_join. Does not look exploitable but better safe than sorry. Fixes #501 2012-10-07 22:58:41 +02:00
Armin Ronacher
661ee54bc2 Raise exceptions if a function is overridden by a new endpoint. This fixes #570 2012-10-07 17:12:16 +02:00
Armin Ronacher
f8b6033a3b Added a workaround for samefile. This fixes #600 2012-10-07 16:04:31 +02:00
Armin Ronacher
c4f2075f4c tojson no longer escapes script blocks in HTML5 parsers. Fixed #605 2012-10-07 15:33:25 +02:00
Armin Ronacher
3bec75d230 Set the content-length header for sendfile. Fixes #447 2012-10-07 15:24:03 +02:00
Armin Ronacher
de5038f2fb Added total_seconds() helper for pythons before 2.7 2012-10-07 14:56:02 +02:00
Armin Ronacher
7f87091474 Added a missing exposed import. This fixes #575 2012-10-07 14:51:26 +02:00
Armin Ronacher
39329bfc07 Merge pull request #591 from finbarrocallaghan/master
fixed some typos
2012-10-07 03:54:58 -07:00
Armin Ronacher
f034d8d345 Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332 2012-10-07 12:51:46 +02:00
Armin Ronacher
62c0c67d88 Merge branch 'master' of github.com:mitsuhiko/flask 2012-10-07 12:49:03 +02:00
Armin Ronacher
4f1cb42123 make_test_environ_builder when used with subdomains was not working correctly, now it uses urlparse module for detecting full URL and changing path and base_url correctly 2012-10-07 12:48:19 +02:00
Armin Ronacher
261c4a6aee Updated documentation for the new sessions 2012-10-07 12:40:59 +02:00
Ryan Macy
7233a3e0a2 Fixed typo occours to occurs
Fixed a typo in the docstring of handle_exception. Was occours, now occurs.
2012-10-01 14:45:02 -05:00
Ralph Bean
9ecbd20286 Update flask/templating.py
Fixed a typo in the docstring.
2012-09-13 15:16:38 -03:00
Finbarr O'Callaghan
e93447f25e actually to actual, again, fixed spelling, not grammar 2012-09-06 18:30:41 +01:00
Finbarr O'Callaghan
48f7cdd016 various typo fixes 2012-09-06 18:04:51 +01:00
Armin Ronacher
fe85970665 Various improvements in regards to the itsdangerous usage, bumped to 0.17 2012-08-11 03:38:46 +01:00
Armin Ronacher
c3d38a21c6 Removed json_available hack 2012-08-11 03:11:40 +01:00
Armin Ronacher
3f82d1b68e Switch to itsdangerous 2012-08-11 03:09:14 +01:00
Armin Ronacher
704d94d7b9 Merge branch 'master' into json-sessions 2012-08-11 02:37:52 +01:00
Armin Ronacher
43f41201e9 Merge branch 'master' of github.com:mitsuhiko/flask 2012-08-11 02:37:43 +01:00
Armin Ronacher
1740d7c51a Merge branch 'master' into json-sessions 2012-08-11 02:37:21 +01:00
Armin Ronacher
b879193481 Set current dev version number to 0.10 2012-08-11 02:37:03 +01:00
Armin Ronacher
4df3bf2058 Implemented experimental JSON based sessions 2012-08-11 02:36:14 +01:00
Priit Laes
e3b3e05052 Docs: Fix docstring formatting 2012-08-01 11:29:40 +03:00
Priit Laes
ed1619adad Docs: Mention SERVER_NAME in the url_for() docstring 2012-08-01 11:27:28 +03:00
Kenneth Reitz
50dc240352 Merge pull request #567 from PaulMcMillan/docs_fix
docstring typo
2012-07-26 12:32:03 -07:00
Paul McMillan
20a542fc8a docstring typo 2012-07-26 09:56:01 -07:00
Armin Ronacher
d4415dd665 Fixed an rst syntax error 2012-07-01 12:26:45 +01:00
Armin Ronacher
bea5858411 Merge branch '0.8-maintenance' and push to 0.9 2012-07-01 12:10:50 +01:00
Armin Ronacher
19def9606a This is 0.8.1 2012-07-01 12:08:38 +01:00
Armin Ronacher
d5218997d9 Added flask.stream_with_context 2012-06-27 15:06:39 +01:00
Armin Ronacher
2e816f554a Merge branch 'master' of github.com:mitsuhiko/flask 2012-06-27 12:25:21 +01:00
Armin Ronacher
43c6a1ede8 Fixed a comment 2012-06-27 12:22:39 +01:00
Armin Ronacher
558750494f Removed unnecessary import 2012-06-27 12:08:01 +01:00
Armin Ronacher
8071f11328 Fixed an issue with the new path finding logic 2012-06-26 17:18:59 +02:00
Matt Wright
1f3e667b5d Fix documention for after_this_request 2012-06-18 18:33:17 -03:00
Armin Ronacher
a9e753f706 Merge pull request #497 from ekoka/master
fix for https://github.com/mitsuhiko/flask/issues/494
2012-06-17 06:24:35 -07:00
Armin Ronacher
b04827283e Removed padded JSON (JSONP) again.
The implementation was not clean and generally the needs for padded json
are disappearing now that all browsers support cross site communication
with the regular xmlhttprequest.
2012-06-17 14:17:22 +01:00
Massimo Santini
4b21e2d38c I think it should check that cache_timeout is not None to allow for a (I hope legale) value of 0 for such parameter. 2012-06-13 16:43:34 +03:00
Marc Abramowitz
447afc3525 Fix failing test: "AssertionError: 'application/javascript' != 'application/json'" in flask/testsuite/helpers.py", line 88 2012-05-27 18:24:27 -07:00
Armin Ronacher
086348e2f2 Added after_this_request decorator. 2012-05-08 13:14:32 +01:00
Armin Ronacher
dbfd406a21 Added required_methods 2012-05-08 12:51:26 +01:00
Armin Ronacher
2053d04db0 Improved interface for the URL build error handler 2012-05-08 11:56:11 +01:00
ekoka
12dcba8849 Update flask/testsuite/basic.py 2012-04-24 05:32:52 -03:00
Ron DuPlain
e78e2a1641 Document example request_globals_class use cases. 2012-04-24 02:10:16 -04:00
Ron DuPlain
33bae1a8dc Add Flask.request_globals_class to customize g.
Requested by toothr on #pocoo.
2012-04-24 02:00:47 -04:00
Ron DuPlain
26da6a5365 Use default send_file max-age consistently.
Prior to this commit, the send_file max-age hook and config were only
used for the static file handler. Now they are used when calling
helpers.send_file directly.
2012-04-24 01:48:05 -04:00