Commit graph

751 commits

Author SHA1 Message Date
Matthias Bussonnier
2de525c720 importlib deprecated in 3.5.
Replace the use of importlib by types.ModuleType that seem to be
available since at least 2.6

closes gh-1449
2015-05-02 10:54:38 -07:00
ning.xie
1b7fad3716 fix pep8 with logging.py 2015-04-19 17:33:54 +08:00
Markus Unterwaditzer
7d506f2408 Recursively traverse MRO of exception 2015-04-11 20:52:47 +02:00
Phil Schaf
b31252db55 addressed a few review concerns 2015-04-11 14:24:01 +02:00
Phil Schaf
8c054f04b8 added caching 2015-04-11 14:05:22 +02:00
Phil Schaf
fd8e6b26f9 removed ExceptionHandlerDict 2015-04-11 14:05:22 +02:00
Phil Schaf
0e44cca8e3 Removed 500 not being registerable for blueprints 2015-04-11 14:05:22 +02:00
Phil Schaf
aa4700c276 More verbose message for old broken behavior 2015-04-11 14:05:22 +02:00
Phil Schaf
a6c6cc18f5 Removed unused http code get function 2015-04-11 14:05:22 +02:00
Phil Schaf
7126a22334 Switched to userdict for obsolete Python versions 2015-04-11 14:05:22 +02:00
Phil Schaf
eae48d97b0 Fixed and intuitivized exception handling 2015-04-11 14:05:22 +02:00
Martijn Pieters
ec0d208bc1 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
94a3968d69 Untangle logic a bit 2015-03-05 22:00:27 +01:00
Keyan Pishdadian
7b080355f5 Remove unused import and clean control flow 2015-03-05 13:26:59 -05:00
Keyan Pishdadian
44da905cb7 Change format index to support Python 2.6 2015-03-05 13:19:00 -05:00
Keyan Pishdadian
1cd9e91810 Changed error message to include actual exception contents 2015-03-05 13:04:38 -05:00
Keyan Pishdadian
290c371eb1 Change to hardcoding exception contents to support Python3 json loading exception format 2015-03-05 12:48:38 -05:00
Keyan Pishdadian
19df249c89 Change logic to support when current_app is not available 2015-03-04 13:21:39 -05:00
Keyan Pishdadian
82b7983b2a Make exception contents conditional on DEBUG 2015-03-02 12:12:37 -05:00
Keyan Pishdadian
5d3e7b737c Add exception details to response 2015-02-28 01:22:15 -05:00
Edward Z. Yang
29f7c10a5d 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
eb2a4521ff 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
fe6bcffdad Document required signature of before_first_request-decorated functions 2015-02-05 12:45:59 -08:00
Chris Rebert
6a2524634d Document that the return values of teardown functions are ignored 2015-02-05 12:45:11 -08:00
Chris Rebert
eccee36964 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
a45fce8496 fix grammar in preprocess_request() docstring 2015-02-05 12:35:25 -08:00
Christopher Bunn
d60e13436d Fixed minor docstring typo for teardown_request() 2015-01-28 21:04:43 -05:00
Ben Jones
61263e08f9 Add datetime.date support to JSONEncoder 2015-01-23 07:44:17 -06:00
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Armin Ronacher
d931216ade Hide a few traceback frames from the cli interface. 2014-12-27 12:25:03 +01:00
Michael Hall
98b155c65d 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
d9402fc0c0 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
5c7557917b Minor typos fixed 2014-11-06 08:58:24 +01:00
defuz
1501b79293 docs: :exc:TypeError 2014-11-05 08:16:27 +03:00
defuz
d338dc8a13 docs: `.html, .py` 2014-11-05 07:52:04 +03:00
defuz
d4b9b9854c docs: :mimetype:application/json 2014-11-05 07:43:00 +03:00
defuz
663802e976 docs: `with, for, self` 2014-11-05 07:39:54 +03:00
defuz
17eee81da0 docs: `Flask-Uploads, X-Forwarded-Host` 2014-11-05 07:23:47 +03:00
defuz
ad011bc32d docs: `DEBUG, SERVER_NAME, PATH_INFO` 2014-11-05 07:10:49 +03:00
defuz
02694d609f docs: :command:pip, :option:--debug 2014-11-05 07:03:55 +03:00
defuz
a8f570cc62 docs: :file:app.py, :file:yourapp/templates 2014-11-05 06:45:22 +03:00
defuz
3fa4fd0908 docs: http method names like `GET and POST` 2014-11-05 06:13:01 +03:00
defuz
8284217593 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
Mieszko
28e30322fa explain_template_loading_attempts: docstring
A verb apparently missing.
2014-11-04 08:51:06 +01:00
Markus Unterwaditzer
a1b273658d 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
d4f6734741 Remove a redundant "the" in a comment. 2014-10-27 11:54:30 +01:00
Petr Zemek
6b9fd4a968 Fix a typo in a comment in MethodViewType.__new__. 2014-10-27 11:54:28 +01:00
Petr Zemek
3159c86166 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
92854cb386 Add a missing period in the description of the signals module. 2014-10-27 11:54:27 +01:00