David Lord
aa13521d42
lazy loading preserves click context
2022-02-22 19:04:03 -08:00
Colin Adams
6f79cb8a23
Fix typing on app.session_interface
2022-02-16 21:12:01 -08:00
Mickaël Guérin
beae1249f7
add exclude-patterns option to flask run
2022-02-09 12:44:03 -08:00
David Lord
1be65b1b69
overriding FlaskClient.open works with redirects
2022-02-09 11:13:03 -08:00
David Lord
bc094dbe6a
Merge pull request #4432 from sfermigier/main
...
Match typing declaration with implementation.
2022-02-08 10:27:11 -08:00
Stefane Fermigier
9a134da31b
Match typing declaration with implementation.
2022-01-27 11:43:42 +01:00
K900
751d85f3de
cli: use importlib.metadata instead of pkg_resources
2022-01-17 19:36:57 +03:00
David Lord
aab064fee1
remove deprecated as_tuple parameter from test_client
2022-01-14 09:34:07 -08:00
David Lord
0fb5c2f034
Merge branch '2.0.x'
2021-12-22 20:02:52 -07:00
David Lord
b1a00ebc4c
update error message for after_this_request and copy_current_request_context
2021-12-22 18:44:37 -07:00
Yourun-Proger
633449a36c
fix error message
2021-12-22 18:35:17 -07:00
olliemath
a841cfabb5
Only use a custom JSONDecoder if needed
...
The default JSONDecoder adds no extra functionality to `json.loads`, but using a custom class in the function call you off of an optimized fast path in pypy (it adds some overhead in cpython, but I think it's minimal). This change sticks with the default loading behaviour unless the user has specifically opted in to customising it.
Co-authored-by: David Lord <davidism@gmail.com>
2021-12-22 18:07:04 -07:00
David Lord
edac7e3a56
Merge branch '2.0.x'
2021-12-22 15:21:31 -08:00
David Lord
9d36623db1
update requirements
2021-12-22 15:16:48 -08:00
David Lord
c8ddb948f6
deprecate RequestContext.g
2021-11-16 07:35:02 -08:00
pgjones
47e4bd5059
copy_current_request_context can decorate async functions
2021-11-16 06:31:51 -08:00
David Lord
6b0c8cdac1
Merge branch '2.0.x'
2021-11-16 06:30:19 -08:00
David Lord
282d8621dd
document session lifetime and possible concurrency issues
...
Co-authored-by: Evgeny Prigorodov <eprigorodov@gmail.com>
2021-11-16 06:19:01 -08:00
Henry Kobin
e679a85b80
made ImportError verbose in cli.py
2021-11-15 14:00:23 -08:00
Bojan Delić
46b39e2698
fix errorhandler type check
2021-11-15 13:35:24 -08:00
David Lord
ea66c68553
Merge branch '2.0.x'
2021-11-15 13:26:06 -08:00
David Lord
564bb27efa
deprecate as_tuple
2021-11-15 13:13:18 -08:00
David Lord
15a3e82823
extend deprecation for renamed send_file params
2021-11-12 09:52:16 -08:00
David Lord
48f2afbf90
same blueprint cannot be registered with same name
2021-11-12 09:52:16 -08:00
David Lord
f8cdc78ce1
remove deprecated total_seconds
2021-11-12 09:52:16 -08:00
David Lord
b7501776a1
remove deprecated safe_join
2021-11-12 09:52:16 -08:00
David Lord
218534a9f2
remove deprecated json encoding parameter
2021-11-12 09:52:16 -08:00
David Lord
2bd7aed1a4
remove deprecated config.from_json
2021-11-12 09:52:16 -08:00
David Lord
e21e003f62
remove deprecated script_info factory arg
2021-11-12 09:52:16 -08:00
David Lord
1b552d0b01
remove ContextVar compat
2021-11-11 16:12:08 -08:00
David Lord
e609dddd60
drop Python 3.6
2021-11-11 16:11:43 -08:00
David Lord
174fe4453a
release version 2.0.2
2021-10-04 07:26:47 -07:00
David Lord
5684f48f70
Merge branch '2.0.x'
2021-10-03 20:39:19 -07:00
David Lord
3f6cdbd8b3
use similar code for all callback-applying methods
...
avoid building nested chain iterables
avoid triggering defaultdict when looking up registries
apply functions as they are looked up
2021-10-03 20:36:21 -07:00
Matthias Paulsen
166a2a6207
Fix callback order for nested blueprints
...
Handlers registered via url_value_preprocessor, before_request,
context_processor, and url_defaults are called in downward order: First
on the app and last on the current blueprint.
Handlers registered via after_request and teardown_request are called
in upward order: First on the current blueprint and last on the app.
2021-10-03 20:27:24 -07:00
Pedro Torcatt
22933a8cb4
fix docs for Flask.test_client_class
2021-10-01 10:01:54 -07:00
David Lord
f4a2c35691
Merge branch '2.0.x'
2021-10-01 09:51:09 -07:00
David Lord
6a4bf9eec1
use exception chaining
...
fixes flake8-bugbear B904
2021-10-01 09:39:10 -07:00
Pedro Torcatt
aa1d34dc51
Fix grammatical error ( #4268 )
...
* Fix grammatical error
* Update scaffold.py
* Update scaffold.py
2021-09-22 10:12:36 -07:00
David Lord
afc13b9390
Merge remote-tracking branch 'origin/2.0.x'
2021-08-05 19:48:47 -07:00
na2shell
9f0da9b770
cli loader handles kwargs in app factory
2021-08-05 19:32:43 -07:00
Rohan salwan
aa6dd09c2c
correctly handle raising deferred errors in cli lazy loading
2021-08-05 19:14:51 -07:00
default-303
892ae95509
jsonify encodes decimal to str
2021-08-05 18:36:13 -07:00
Yourun-Proger
9a2adfba4d
static_folder can be a pathlib.Path
2021-08-05 18:16:20 -07:00
Karuna Tata
e18ed45c88
document return value for config loading methods
2021-08-05 17:38:24 -07:00
Adrian Moennich
7a73171edc
Merge branch '2.0.x'
2021-07-06 22:06:20 +02:00
Adrian Moennich
6e1b72096d
Fix typo in docs
2021-07-06 22:05:31 +02:00
Grey Li
ba6db2e307
Merge remote-tracking branch 'origin/2.0.x' into main
2021-06-26 23:35:24 +08:00
pgjones
a44c722860
Fix registering a blueprint twice with differing names
...
Previously the blueprint recorded aspects (before request, after
request etc) would only be added to the app if it was the first
registration of the blueprint instance. However only the record-once
aspects (app-before requests, app-after request) should be added once
on registration of the instance, whereas everything else should be
added on every unique name registration. This ensures that these
trigger under the new name as well as the old.
2021-06-14 17:18:47 +00:00
Pascal Corpet
6a4e7e948d
improve typing for app.errorhandler decorator
2021-06-01 19:25:27 +01:00