Commit graph

167 commits

Author SHA1 Message Date
Armin Ronacher
335e0af731 Merge pull request #708 from xealot/master
Blueprint.after_request causes Flask to ignore @after_this_request
2013-05-14 03:36:29 -07:00
Armin Ronacher
2ba37d2b85 Fixed some rst markup problems 2013-05-14 11:33:13 +01:00
Armin Ronacher
097353695e Added flask.copy_current_request_context which simplies working with greenlets 2013-05-14 11:00:04 +01:00
Trey Long
f74f446961 fixing process_response
Flask.process_response will throw away functions is receives from ctx._after_request_functions if there is a Blueprint that has used @after_request.
2013-04-04 12:31:42 -03:00
Armin Ronacher
6ab569b0e3 Added note on teardown in debug mode. Fixes #661 2013-01-27 00:56:01 +00:00
Armin Ronacher
3b393f89f6 Added template_global, fixes #657 2013-01-27 00:46:19 +00:00
Armin Ronacher
61d3bbf1d2 Fixed last commit and added test 2013-01-21 17:55:07 +00:00
Armin Ronacher
f1537a9d7a Always trap proxy exceptions 2013-01-21 17:44:32 +00:00
Armin Ronacher
2af0ffaef6 Added proxies to template context 2012-12-21 11:47:27 +01:00
Armin Ronacher
1949c4a9ab flask.g is now on the app context and not the request context 2012-12-21 11:45:42 +01:00
Armin Ronacher
8339cb3508 Added support for unicode json dumping. This fixes #535 2012-10-18 00:48:15 +01:00
Armin Ronacher
f34c028125 Added template tests and made config a true global 2012-10-08 07:01:49 +02:00
Armin Ronacher
b146d8277a Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +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
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
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
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
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
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
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
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
Ron DuPlain
148c50abf9 Document url_for BuildError hook. 2012-04-23 21:20:47 -04:00
Ron DuPlain
8c8c524ddb Re-raise BuildError with traceback. 2012-04-22 12:51:31 -04:00
Ron DuPlain
bb31188ec3 Add a BuildError hook to url_for, #456. 2012-04-22 12:30:15 -04:00
ekoka
36194697ae Update flask/app.py 2012-04-21 23:36:08 -03:00
Ron DuPlain
a3cb2a3382 Use American English for "behavior" in docs.
Prompted by plaes on #pocoo, mitsuhiko confirmed to use American English.
2012-04-19 11:51:38 -04:00
Armin Ronacher
9bed20c07c Added documentation for appcontext and teardown handlers 2012-04-09 17:29:00 +01:00
Armin Ronacher
cf1641e5be Changed the implementation of returning tuples from functions 2012-04-09 15:56:33 +01:00
Armin Ronacher
3249eeb438 Merge branch 'master' of github.com:mitsuhiko/flask 2012-04-09 15:26:09 +01:00
Armin Ronacher
307d1bc4e5 Added support for basic URL generation without request contexts. 2012-04-09 15:04:35 +01:00
Armin Ronacher
47288231fe Implemented a separate application context. 2012-04-09 14:34:12 +01:00
Ron DuPlain
d94efc6db6 Expose send_file max-age as config value, #433.
Need to add the same hook in a Blueprint, but this is the first such
case where we need app.config in the Blueprint.
2012-03-13 16:34:16 -07:00
James Saryerwinnie
075b6b11c8 Fix issue 140
This allows for a view function to return something like:

    jsonify(error="error msg"), 400
2012-03-11 20:45:58 -07:00
Ron DuPlain
56177bcbd1 Document app.testing=True for test client, #381. 2012-01-17 19:43:11 -05:00
Ron DuPlain
49b77fbc7a Add missing colons to versionadded. 2012-01-17 11:38:00 -05:00
Ron DuPlain
19d32cb172 Update Flask.run signature, note defaults. 2012-01-16 23:33:13 -05:00
Joe Esposito
46e7bc7083 In Flask.run, now when the host/port argument is None, it will use its default value. 2012-01-16 23:29:24 -05:00
Ron DuPlain
ce4d589d5b Add non-decorator template filter methods.
Suggested by @Poincare on GitHub, on @Reisen's pull request:
https://github.com/mitsuhiko/flask/pull/272
2012-01-16 20:16:48 -05:00
Armin Ronacher
d628df6ab6 Store session after callbacks. This fixes #351 2011-11-20 16:54:40 +01:00
Armin Ronacher
8da8a21b69 Moved the conversion thing into the ConfigAttribute. 2011-09-25 19:17:50 +02:00
Armin Ronacher
6dccf77546 PERMANENT_SESSION_LIFETIME can now be an integer. This fixes #310 2011-09-25 19:12:41 +02:00
Armin Ronacher
df1dd57045 Cleaned up url routing common docs. This fixes #279 2011-09-25 18:49:00 +02:00
Armin Ronacher
d2eefe25e7 app.name shall be __main__ for console apps 2011-09-24 20:25:28 +02:00