Charles-Axel Dein
dfae2679a6
Clarify the after_request argument
...
Make it a bit clearer that it's an instance of response_class that is
expected, not the actual response_class class.
11 years ago
Daniel Neuhäuser
3f8e29b12c
Add Flask.config_class to changelog
11 years ago
Alexis Svinartchouk
280d865960
fix issue #879 and add a test for it
...
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
11 years ago
Armin Ronacher
46c24da016
Make before_first_request a decorator
11 years ago
Armin Ronacher
ae45aed8d6
Removed an unnecessary newline
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Mikael Åhlén
70f8b39c52
added a new behaviour for responses that enable the tuple to be in the form of (response, headers) and continiue to support the (response, status, headers) format.
11 years ago
Day Barr
c021e58775
Fix typo in docs for error_handler_spec
11 years ago
Adrian
46b5754d97
Don't refer to flaskext in docs
11 years ago
defuz
3e485009a8
add TEMPLATES_AUTO_RELOAD option to config
11 years ago
Armin Ronacher
8f1dada542
Some cleanups
12 years ago
Maximilian Hils
17e5fb365d
Fix typo in docstring
12 years ago
Kevin Burke
9e5ab21c8e
app.py: Link to correct EnvironBuilder docs
12 years ago
Markus Unterwaditzer
af5a0853bf
Fix #815
12 years ago
Armin Ronacher
d1d835c023
Added SESSION_REFRESH_EACH_REQUEST config option.
...
This also changes how sessions are being refreshed. With the new
behavior set-cookie is only emitted if the session is modified or if the
session is permanent. Permanent sessions can be set to not refresh
automatically through the SESSION_REFRESH_EACH_REQUEST config key.
This fixes #798 .
12 years ago
Robert Picard
b6116c1de3
Remove Werkzeug bug workaround from flask/app.py
...
According to the note in the comment, you had to check to make sure that the
defaults were not an empty dictionary because of a bug in Werkzeug pre-0.7.
Since Flask officially requires 0.7 or greater, we can remove this little
workaround.
12 years ago
Karol Kuczmarski
ec5b182f15
Add Flask.config_class feature
12 years ago
Serge S. Koval
44e39ab071
Fixed class-based views support
12 years ago
Mark Steve Samson
6565bd848e
Fix typo
12 years ago
Armin Ronacher
efd6e468ae
Removed view_func from route documentaiton.
...
This fixes #763 .
12 years ago
Armin Ronacher
94c6ae51d7
Some small cleanup
12 years ago
Armin Ronacher
62dbe0e1ca
The default run method is now accepting the port from the SERVER_NAME.
12 years ago
Armin Ronacher
05479eb954
Some reindentation cleanup
12 years ago
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
12 years ago
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
12 years ago
Armin Ronacher
77d293cf49
Order JSON keys by default to avoid trashing HTTP caches
12 years ago
Armin Ronacher
3d9055b3b7
Added the JSONIFY_PRETTYPRINT_REGULAR config variable. This fixes #725
12 years ago
Armin Ronacher
f1918093ac
Changed teardown error handling to be more reliable.
12 years ago
Thomas Waldmann
bbfef4c406
flask view function may return bytes/str/unicode
12 years ago
Thomas Waldmann
13cc69911c
fix typos
12 years ago
Thomas Waldmann
96b8ffbb29
always import from ._compat
12 years ago
Thomas Waldmann
8bb972e5ae
fix minitwit/flaskr test errors, improve docs about file open mode
...
app.open_resource needs to get called with the correct mode param (python3
will read bytes [not str] if the wrong mode is used), add mode param docs.
rv.data is bytes, fix the data type we compare it with to be also bytes
12 years ago
Tobias Bieniek
12c08c03fb
Fixed typo in app.blueprints docstring
12 years ago
Thomas Waldmann
e1d356fb71
ported some more stuff to py 3.3
...
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")
removed with_statement future imports, not needed any more
needs more work on 2.7 as well as on 3.3
12 years ago
Thomas Waldmann
b8b769ad41
automated change using python-modernize: fix methodattrs
12 years ago
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Armin Ronacher
2ba37d2b85
Fixed some rst markup problems
12 years ago
Armin Ronacher
097353695e
Added flask.copy_current_request_context which simplies working with greenlets
12 years ago
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 .
12 years ago
Armin Ronacher
6ab569b0e3
Added note on teardown in debug mode. Fixes #661
12 years ago
Armin Ronacher
3b393f89f6
Added template_global, fixes #657
12 years ago
Armin Ronacher
61d3bbf1d2
Fixed last commit and added test
12 years ago
Armin Ronacher
f1537a9d7a
Always trap proxy exceptions
12 years ago
Armin Ronacher
2af0ffaef6
Added proxies to template context
12 years ago
Armin Ronacher
1949c4a9ab
flask.g is now on the app context and not the request context
12 years ago
Armin Ronacher
8339cb3508
Added support for unicode json dumping. This fixes #535
12 years ago
Armin Ronacher
f34c028125
Added template tests and made config a true global
12 years ago
Armin Ronacher
b146d8277a
Added wrapper module around simplejson/json for much simplified customization.
12 years ago
Armin Ronacher
661ee54bc2
Raise exceptions if a function is overridden by a new endpoint. This fixes #570
12 years ago
Armin Ronacher
f034d8d345
Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332
12 years ago