Commit graph

740 commits

Author SHA1 Message Date
Martijn Pieters
35a1bc2f4a Switch away from using None as default value for the exception when tearing down a context.
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.
2015-03-23 15:17:19 +00:00
Markus Unterwaditzer
0a59ed3a0b Untangle logic a bit 2015-03-05 22:00:27 +01:00
Keyan Pishdadian
2277af95a9 Remove unused import and clean control flow 2015-03-05 13:26:59 -05:00
Keyan Pishdadian
ac9a7c1740 Change format index to support Python 2.6 2015-03-05 13:19:00 -05:00
Keyan Pishdadian
b032c2851e Changed error message to include actual exception contents 2015-03-05 13:04:38 -05:00
Keyan Pishdadian
efd6333ae0 Change to hardcoding exception contents to support Python3 json loading exception format 2015-03-05 12:48:38 -05:00
Keyan Pishdadian
8fa4b36357 Change logic to support when current_app is not available 2015-03-04 13:21:39 -05:00
Keyan Pishdadian
6f6c63aea5 Make exception contents conditional on DEBUG 2015-03-02 12:12:37 -05:00
Keyan Pishdadian
b57ee34361 Add exception details to response 2015-02-28 01:22:15 -05:00
Edward Z. Yang
9209377f03 Remove bad security advice about send_file.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
2015-02-07 15:06:51 -08:00
Markus Unterwaditzer
f06dc142f1 Merge pull request #1341 from ThiefMaster/pep-440-dev-version
Use PEP440-compatible dev version
2015-02-06 18:03:41 +01:00
ThiefMaster
ddf0dfa895 Use PEP440-compatible dev version 2015-02-06 17:05:08 +01:00
Chris Rebert
4692b32f6c Document required signature of before_first_request-decorated functions 2015-02-05 12:45:59 -08:00
Chris Rebert
cbde895669 Document that the return values of teardown functions are ignored 2015-02-05 12:45:11 -08:00
Chris Rebert
d8a0d09a66 Document required signature of before_request functions
Unless you happened to also read preprocess_request()'s docstring,
it wasn't not obvious that return values from these functions are treated as
response values.
2015-02-05 12:38:34 -08:00
Chris Rebert
1d9b459fc5 fix grammar in preprocess_request() docstring 2015-02-05 12:35:25 -08:00
Christopher Bunn
e2d6bbdcff Fixed minor docstring typo for teardown_request() 2015-01-28 21:04:43 -05:00
Ben Jones
db619cc609 Add datetime.date support to JSONEncoder 2015-01-23 07:44:17 -06:00
Parkayun
e05771ff60 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Armin Ronacher
3481827dda Hide a few traceback frames from the cli interface. 2014-12-27 12:25:03 +01:00
Michael Hall
ca45970012 Fixed #1288: app.add_url_rule() should look for OPTIONS methods in a case-insensitive manner 2014-12-26 08:58:35 -05:00
Marc Abramowitz
8a022de2ed Make jsonify terminate responses with a newline
This came up in the context of
https://github.com/kennethreitz/httpbin/issues/168
2014-12-07 14:37:26 -08:00
Mieszko
54fbc00a9e Minor typos fixed 2014-11-06 08:58:24 +01:00
defuz
e4043cfb11 docs: :exc:TypeError 2014-11-05 08:16:27 +03:00
defuz
f865a7ffd6 docs: `.html, .py` 2014-11-05 07:52:04 +03:00
defuz
b9d849475d docs: :mimetype:application/json 2014-11-05 07:43:00 +03:00
defuz
62019cf705 docs: `with, for, self` 2014-11-05 07:39:54 +03:00
defuz
d81e6f85af docs: `Flask-Uploads, X-Forwarded-Host` 2014-11-05 07:23:47 +03:00
defuz
0517016996 docs: `DEBUG, SERVER_NAME, PATH_INFO` 2014-11-05 07:10:49 +03:00
defuz
ec806c1bbe docs: :command:pip, :option:--debug 2014-11-05 07:03:55 +03:00
defuz
b5c9ad68dd docs: :file:app.py, :file:yourapp/templates 2014-11-05 06:45:22 +03:00
defuz
6c894b2274 docs: http method names like `GET and POST` 2014-11-05 06:13:01 +03:00
defuz
f7cbe74c35 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
Mieszko
d267a43a37 explain_template_loading_attempts: docstring
A verb apparently missing.
2014-11-04 08:51:06 +01:00
Markus Unterwaditzer
63b06da4dc Merge pull request #1222 from defuz/templates_auto_reload-eq-none
Set TEMPLATE_AUTO_RELOAD default value to None
2014-11-02 20:46:48 +01:00
Petr Zemek
ac5d65385e Remove a redundant "the" in a comment. 2014-10-27 11:54:30 +01:00
Petr Zemek
383ccdc118 Fix a typo in a comment in MethodViewType.__new__. 2014-10-27 11:54:28 +01:00
Petr Zemek
51278ad3fd Unify the uses of "sourcecode" vs "source code".
Use "source code", which is more grammatically correct.
2014-10-27 11:54:28 +01:00
Petr Zemek
560b6843b5 Add a missing period in the description of the signals module. 2014-10-27 11:54:27 +01:00
Petr Zemek
3e3f33ccbd Fix a typo in the description of SecureCookieSession.
The term "base class" (with a space) is used in another file, so use it here as well to make the wording consistent across the whole project.
2014-10-27 11:54:27 +01:00
Petr Zemek
2593ae00cf Unify the uses of "urls" vs "URLs".
Use "URLs", which is more prevailing in the source code.
2014-10-27 11:36:23 +01:00
Petr Zemek
9c229ef0fa Unify the uses of "file system" vs "fileystem".
Use "filesystem", which is more prevailing in the source code.
2014-10-27 11:33:45 +01:00
Petr Zemek
a11febd5b7 Unify the uses of "testsuite" vs "test suite".
Use "test suite", which is more prevailing in the source code.
2014-10-27 11:31:01 +01:00
Petr Zemek
27d339dc69 Put two spaces before inline comments when there is only one space.
PEP8 (E261) suggests to use at least two spaces before inline comments.
2014-10-27 11:24:15 +01:00
Petr Zemek
feeab8fa00 Fix two typos in the description of FlaskGroup. 2014-10-27 11:03:07 +01:00
defuz
2192b6941e set TEMPLATE_AUTO_RELOAD default value to None 2014-10-26 18:28:12 +03:00
Bryan Stitt
ff12442dc8 Update config.py 2014-10-24 13:11:10 +04:00
Bryan Stitt
c3080305f3 Update config.py
I want to load all of my `CELERY_` options from the config and leave `CELERY_` on there.
2014-10-24 13:11:10 +04:00
Gilman Callsen
6f0c3533c7 Improve compression by removing whitespace from separators when using jsonify() and JSONIFY_PRETTYPRINT_REGULAR is False.
Commit includes Changelog entry and two new tests in test_basic.py.
2014-10-21 19:11:06 +02:00
Matt Wright
9b1bb78272 Add CHANGES entry and versionchanged entry to docstring 2014-10-20 21:21:30 +02:00