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
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
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
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
0207e90155
Updated docs for the app context.
2012-04-09 15:22:36 +01:00
Ron DuPlain
f43003967e
Merge pull request #439 from aisipos/jsonexceptions
...
Add new exceptions module, to implement JSONHttpException and JSONBadRequest.
2012-04-01 08:42:39 -07:00
Ron DuPlain
0eb75b317b
Add notes on mutable values & sessions.
...
Using notes in 8445f0d939
2012-04-01 11:33:42 -04: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
Ron DuPlain
146088d580
Expand docs on send_file option hook, #433 .
2012-03-13 14:37:48 -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
Jeffrey Finkelstein
9711fd4020
On JSON requests, the JSON response should have Content-Type: application/json and the body of the response should be a JSON object.
2012-03-08 16:41:39 -05:00
Ron DuPlain
fdad6713eb
Add updates to render_template to CHANGES, #409 .
2012-02-24 09:33:11 -05:00
FND
4aebc267bc
Hyphenate "class-based"
...
makes it more readable
2012-01-31 13:54:52 +01:00
Ron DuPlain
234ac198cb
Add updated Flask.run to CHANGES.
2012-01-16 23:38:36 -05:00
Ron DuPlain
81010bf7af
Add get_flashed_messages to CHANGES, expand docs.
2012-01-16 23:10:21 -05:00
Ron DuPlain
96f7beba46
Document recent changes.
2012-01-16 20:53:20 -05:00
ThomasWaldmann
e2cb8d2ef1
fixed typo, quote "with" statement
2012-01-16 13:42:43 -05:00
Armin Ronacher
d628df6ab6
Store session after callbacks. This fixes #351
2011-11-20 16:54:40 +01:00
Armin Ronacher
7f4c12b335
Break up a circular dependency on shutdown
2011-11-05 17:43:40 +01:00
Armin Ronacher
11c7b1df23
Merge branch 'master' of github.com:mitsuhiko/flask
2011-11-04 02:46:44 +01:00
Armin Ronacher
f52e7a9dc9
Added support for _method to url_for()
2011-11-04 02:46:22 +01:00
Simon Sapin
4ab97047de
Typo fix
2011-10-13 11:49:51 +03:00
Armin Ronacher
61a95196ac
Changed logic for debug level log settings
2011-10-11 19:09:37 -07:00
Armin Ronacher
1759d8e4d8
Added support for anchor link generation.
2011-10-06 10:57:03 -04:00
Armin Ronacher
d04c9a61e3
Merge branch '0.8-maintenance'
2011-10-02 01:09:36 +02:00
Armin Ronacher
0dd9dc37b6
Fixed an issue with an unused module for Python 2.5 (flask.session)
2011-10-02 01:08:54 +02:00
Armin Ronacher
766522cb58
Prepare for an 0.8.1 release
2011-10-02 01:06:22 +02:00
Armin Ronacher
3765cc2e9e
This is 0.9-dev
2011-09-29 23:36:57 +02:00
Armin Ronacher
585ff1db3d
This will be Rakija
2011-09-29 23:33:46 +02:00
Armin Ronacher
c6316132b1
Context preserving is now part of Flask and not the test client. This fixes #326
2011-09-24 20:27:38 +02:00
Armin Ronacher
1e6c5f0975
Documented flask.ext.
2011-09-18 12:51:10 +02:00
Armin Ronacher
32c7e43dda
Simplified HEAD handling for method views
2011-09-17 19:39:10 +02:00
Armin Ronacher
ccf464189b
Added finer control over the session cookie parameters
2011-08-30 14:36:50 +02:00
Armin Ronacher
d49221bf2e
The test client now properly pops response contexts on __exit__
2011-08-26 14:01:46 +01:00
Armin Ronacher
ef0f626f0a
Added flask.views.View.decorators to automatically decorate class based views.
2011-08-25 22:09:48 +01:00
Armin Ronacher
e853a0f739
The test client and test_request_context are now both using the same logic internally for creating the environ. Also they use APPLICATION_ROOT now.
2011-08-25 20:47:50 +01:00
Armin Ronacher
a5da2c98f3
Implemented flask.testing.TestClient.session_transaction for quick session modifications in test environments.
2011-08-25 15:18:39 +01:00
Armin Ronacher
c844d02f1c
Added the APPLICATION_ROOT configuration variable which is used by session backends.
2011-08-25 12:13:55 +01:00
Armin Ronacher
187cb80dcc
Documented instance root
2011-08-10 13:55:57 +02:00
Armin Ronacher
153ecbc920
Implemented instance paths
2011-08-10 13:34:58 +02:00
Armin Ronacher
ce70131975
If JSON parsing fails it now issues a BadRequest exception.
2011-08-08 21:47:26 +02:00
Armin Ronacher
02a1317460
Added the ability to trigger functions before the first request to the application
2011-08-07 12:43:38 +02:00
Armin Ronacher
5500986971
Flask in debug mode will now complain if views are attached after the first view was handled.
2011-08-07 02:30:34 +02:00
Armin Ronacher
2e022cb272
Added debughelpers. Flask will now tell you if you forget enctype
2011-08-05 16:43:42 +02:00
Armin Ronacher
7155f11a72
Added HTTP exception trapping. This should fix #294
2011-08-05 12:35:41 +02:00
Armin Ronacher
c9a2ad2b8d
Fixed a bug in list_templates
2011-07-16 01:16:29 +02:00
Armin Ronacher
3b31df81ae
View functions can opt out of the default OPTIONS implementation
2011-07-14 14:18:42 +02:00