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.
2013-12-31 22:16:13 +01:00
Day Barr
c021e58775
Fix typo in docs for error_handler_spec
2013-10-25 16:51:29 +01:00
Adrian
46b5754d97
Don't refer to flaskext in docs
2013-10-15 21:47:42 +02:00
Armin Ronacher
8f1dada542
Some cleanups
2013-09-02 04:57:01 +06:00
Maximilian Hils
17e5fb365d
Fix typo in docstring
2013-08-19 10:56:08 +02:00
Kevin Burke
9e5ab21c8e
app.py: Link to correct EnvironBuilder docs
2013-08-04 22:33:17 -07:00
Markus Unterwaditzer
af5a0853bf
Fix #815
2013-07-31 00:38:03 +02:00
Armin Ronacher
559ae196e7
Merge branch 'master' of github.com:mitsuhiko/flask
2013-07-30 16:45:23 +02:00
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 .
2013-07-30 16:43:54 +02:00
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.
2013-07-29 13:42:04 -04:00
Serge S. Koval
44e39ab071
Fixed class-based views support
2013-06-14 10:28:37 +03:00
Mark Steve Samson
6565bd848e
Fix typo
2013-06-12 22:04:49 +08:00
Armin Ronacher
efd6e468ae
Removed view_func from route documentaiton.
...
This fixes #763 .
2013-06-09 11:46:43 +01:00
Armin Ronacher
94c6ae51d7
Some small cleanup
2013-06-07 00:56:21 +01:00
Armin Ronacher
62dbe0e1ca
The default run method is now accepting the port from the SERVER_NAME.
2013-06-07 00:46:30 +01:00
Armin Ronacher
05479eb954
Some reindentation cleanup
2013-06-05 10:35:41 +01:00
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
2013-06-03 12:25:08 +01:00
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
2013-06-02 21:47:32 +01:00
Armin Ronacher
77d293cf49
Order JSON keys by default to avoid trashing HTTP caches
2013-06-01 19:24:03 +01:00
Armin Ronacher
3d9055b3b7
Added the JSONIFY_PRETTYPRINT_REGULAR config variable. This fixes #725
2013-06-01 00:20:00 +01:00
Armin Ronacher
da747738e8
Merge branch 'master' of github.com:mitsuhiko/flask
2013-05-30 21:39:22 +01:00
Armin Ronacher
f1918093ac
Changed teardown error handling to be more reliable.
2013-05-30 18:15:17 +01:00
Thomas Waldmann
bbfef4c406
flask view function may return bytes/str/unicode
2013-05-30 16:02:28 +02:00
Thomas Waldmann
13cc69911c
fix typos
2013-05-25 22:01:14 +02:00
Thomas Waldmann
96b8ffbb29
always import from ._compat
2013-05-25 20:24:14 +02:00
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
2013-05-25 19:13:48 +02:00
Tobias Bieniek
12c08c03fb
Fixed typo in app.blueprints docstring
2013-05-25 09:10:41 +03:00
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
2013-05-22 01:33:04 +02:00
Daniel Neuhäuser
26a9e90734
Merge pull request #734 from ThomasWaldmann/methodattrs
...
automated change using python-modernize: fix methodattrs
2013-05-18 08:24:45 -07:00
Thomas Waldmann
b8b769ad41
automated change using python-modernize: fix methodattrs
2013-05-18 16:39:39 +02:00
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
2013-05-18 16:24:40 +02:00
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