Steven Loria
2bf477cfea
Add JSONIFY_MIMETYPE configuration variable ( #1728 )
...
Allow jsonify responses' mimetype to be configured
2016-04-08 15:30:47 -07:00
Daniel Quinn
740c42217c
The comment didn't make any sense ( #1777 )
...
Fix doc comment for View.methods
2016-04-08 08:53:25 -07:00
Jeff Widman
6bf42f9a84
Merge pull request #1577 from sprin/1102_warn_on_run
...
docs: run() should not be used in production
2016-04-04 11:22:34 -07:00
Steffen Prince
6e91498e64
docs: run() should not be used in production
...
Refs #1102
2016-04-04 00:03:29 -05:00
David Hou
9f1be8e795
Raise BadRequest if static file name is invalid
...
* Raise BadRequest if static file name is invalid
* Clean up syntax a bit
* Remove unnecessary close()
2016-04-02 21:07:27 +02:00
Markus Unterwaditzer
d3d8a4694a
Deprecate flask.ext
...
* Add deprecation warning to ext pkg
* Add docs on deprecation of flask.ext
* Improve deprecation warnings
* Add headers for better distinction, fix ordering issue of paragraphs
2016-04-02 21:06:30 +02:00
Shipeng Feng
cc536c8a7b
Fixed stream_with_context if decorated function has parameters
2016-04-01 16:17:45 -07:00
lord63
07fdd1930b
Update app.py
2016-02-04 14:35:03 +08:00
lord63
6d0bbd627c
Fix typo
...
* Use the compatible way to handle the exception. You can find the
source code wsgi_app in app.py, and it use the compatible way, so update it
* Fix typo in config.py
* Fix typo in app.py
2016-02-03 21:08:22 +08:00
Adrian
a4df0fbb39
Add missing return to g.setdefault
2016-02-02 16:16:01 +01:00
David Lord
b4240e6bbd
Merge pull request #1688 from nivm/master
...
Remove 'flask' from etags to obscure server technologies
2016-01-25 23:02:48 -08:00
David Lord
992d9be96e
clean up
2016-01-25 22:56:51 -08:00
David Lord
7df543d5dc
Merge pull request #1703 from jeffwidman/master
...
Cleanup jsonify() function
2016-01-25 22:52:09 -08:00
David Lord
7b1ebfbc4d
Merge pull request #1679 from miguelgrinberg/passthrough-errors
...
Werkzeug should not block propagated exceptions from Flask
2016-01-25 22:17:04 -08:00
Jeff Widman
0edf0a0e3a
Cleanup jsonify() function
...
Cleanup some leftover stuff from #1671 . PEP8 spacing, args/kwargs don't need to be converted to list/dict, and Sphinx formatting.
2016-01-25 16:43:02 -08:00
Jeff Widman
daceb3e3a0
Add support for serializing top-level arrays to JSON
...
Fix #170 , #248 , #510 , #673 , #1177
2016-01-13 13:20:11 -08:00
nivm
edb65cc0f0
remove 'flask' from etags to obscure server technologies
2016-01-10 12:33:35 +02:00
Miguel Grinberg
952a6c8989
Werkzeug should not block propagated exceptions from Flask
2016-01-02 14:18:36 -08:00
lord63
b55bc0baa2
Remove with_statement in flask/ctx.py
2015-12-13 22:08:31 +08:00
lord63
1d49343bb1
Fix typo in app_ctx_globals_class doc in app.py
2015-11-07 09:04:24 +08:00
Eric Yang
7f678aaf5a
Fix a typo
...
Maybe this is a typo?
2015-11-04 22:08:31 +08:00
Timo Furrer
d526932a09
support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable
2015-10-24 07:04:23 +02:00
Armin Ronacher
1ac4156016
Fixed some lint warnings
2015-10-02 23:19:54 +02:00
Mathias J. Hennig
b3767ae59f
Addressing feedback from pull request
2015-07-27 15:32:23 +02:00
Mathias J. Hennig
c8f19f0afc
Reimplement function with_metaclass()
2015-07-22 23:35:13 +02:00
Markus Unterwaditzer
b528b2ffe3
Merge pull request #1535 from lobeck/revert-1534-update_external_url_handler_example
...
Revert "make external_url_handler example py3 compliant"
2015-07-16 12:20:33 +02:00
lobeck
128bc76af0
Revert "make external_url_handler example py3 compliant"
2015-07-16 13:53:59 +02:00
Markus Unterwaditzer
81ae94a5fd
Merge branch '0.10-maintenance'
2015-07-16 12:05:07 +02:00
Christian Becker
5da31f8af3
fix UnboundLocalError in handle_url_build_error
...
- caused by changes in the execution model of python 3 where the alias of an except clause is cleared on exit of the except
2015-07-16 12:00:16 +02:00
Christian Becker
93fe1d54bd
make external_url_handler example py3 compliant
...
- a raises statement with multiple values is no longer allowed in python 3
2015-07-16 02:45:56 +02:00
Alan Hamlett
99c99c4c16
Enable autoescape for render_template_string
2015-07-04 23:41:43 +02:00
Alan Hamlett
e4f635f8d7
remove whitespace at end of lines
2015-07-04 23:41:31 +02:00
Markus Unterwaditzer
37474871dc
Merge pull request #1509 from ThiefMaster/appctxglobals-candy
...
Add pop and setdefault to AppCtxGlobals
2015-06-30 21:33:04 +02:00
ThiefMaster
6af9690ae9
Remove the deprecated Flask.modules property
2015-06-20 18:09:27 +02:00
ThiefMaster
bbaf20de7c
Add pop and setdefault to AppCtxGlobals
2015-06-20 18:04:58 +02:00
Alexander Pantyukhin
5e12748d0e
Ignore before_render_template return values
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
883f82f261
template overrides handling changed
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
967907ee81
before_render_template signal can override render template.
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
1fbeb337c4
fix endline in the signal.py
2015-06-17 15:42:39 +02:00
Alexander Pantyukhin
d53d5c732b
before_render_template signal
2015-06-17 15:42:39 +02:00
Markus Unterwaditzer
554c5b965a
Fix #1477
2015-06-13 17:07:51 +02:00
GunWoo Choi
c65b32ba1d
Update title of docstring in flask.cli
2015-06-12 13:40:53 +09:00
Markus Unterwaditzer
bc4c1777e9
Document static_folder
2015-06-11 19:55:51 +02:00
Keyan Pishdadian
805692108a
Update send_file() docs to clarify encoding requirement #1286
2015-06-06 07:38:09 +02:00
Markus Unterwaditzer
d13a1b363e
Rename jinja_env_class
...
Inspired by #1056
2015-06-06 06:29:26 +02:00
Markus Unterwaditzer
d00f5cc9fe
Merge branch 'ThiefMaster-override-jinja-env'
2015-06-06 03:30:49 +02:00
Markus Unterwaditzer
2446ca63a8
0.11 => 1.0
2015-06-06 03:29:44 +02:00
Joshua Carp
348bf52188
Handle empty deque on errorhandler lookup.
...
After registering a custom errorhandler by exception class, raising any
unhandled exception in a view function swallows the error and instead
throws an `IndexError` on trying to look up the appropriate handler.
This patch avoids the uninformative `IndexError` and preserves the
original exception by looping until the deque of classes is empty, not
forever.
2015-06-02 16:13:30 -04:00
Markus Unterwaditzer
0d19fa0a06
Clarify some docs
...
Fix #1476
2015-05-31 18:59:14 +02:00
Wang Haowei
be45a608e3
fix docstring for _find_errorhandler
2015-05-20 20:31:06 +08:00