Commit graph

274 commits

Author SHA1 Message Date
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
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
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
ThiefMaster
6af9690ae9 Remove the deprecated Flask.modules property 2015-06-20 18:09:27 +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
Wang Haowei
be45a608e3 fix docstring for _find_errorhandler 2015-05-20 20:31:06 +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
ThiefMaster
08ac3aa4e3 Allow custom jinja environments
This is useful e.g. when using the new Jinja Environment
attributes added in mitsuhiko/jinja2#404
2015-04-06 15:03:00 +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
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
Parkayun
33534bb4a9 Happy New Year 2015 2015-01-02 11:35:00 +09: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
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
663802e976 docs: `with, for, self` 2014-11-05 07:39:54 +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
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
d1423b3e16 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
ec3d5800f2 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
defuz
f88765d504 set TEMPLATE_AUTO_RELOAD default value to None 2014-10-26 18:28:12 +03:00
Matt Wright
986b92203a Add CHANGES entry and versionchanged entry to docstring 2014-10-20 21:21:30 +02:00
Matt Wright
44c025f552 Add a little documentation regarding kwargs in the app.test_client() method 2014-10-20 21:21:30 +02:00
Matt Wright
fed6fd32d8 Pass keyword args from test_client method to client class constructor 2014-10-20 21:21:30 +02:00
Armin Ronacher
c09a4317e4 Record blueprint registration order. 2014-09-03 20:12:06 +02:00
Armin Ronacher
bafc139810 Added EXPLAIN_TEMPLATE_LOADING to help people debug templates not being loaded. 2014-09-03 17:57:51 +02:00
Armin Ronacher
817b72d484 Removed deprecated module functionality 2014-08-27 01:12:33 +02:00
Armin Ronacher
84ad89ffa4 Always log now, even if debug is off. 2014-08-27 01:08:19 +02:00
Daniel Neuhäuser
7d57c29f7a Merge pull request #1156 from brwr/brwr/fix-documentation-typo
Add missing `of` to documentation.
2014-08-26 12:29:57 +02:00