David Lord
ea2e9609bc
Merge branch 'master' into json-object-hook
2017-06-01 06:40:27 -07:00
David Lord
859d9a9d5c
show nice message when registering error handler for unknown code
...
clean up error handler docs
closes #1837
2017-05-31 18:04:08 -07:00
David Lord
8f3563cf79
fix operator precedence
2017-05-29 19:46:33 -07:00
David Lord
42905b8a55
set description for trap as well as debug
...
test for key error description
2017-05-29 19:41:07 -07:00
David Lord
045dccaefb
make debugging bad key errors easier
...
* TRAP_BAD_REQUEST_ERRORS is enabled by default in debug mode
* BadRequestKeyError has the key in the description in debug mode
closes #382
2017-05-29 19:08:25 -07:00
David Lord
b9c8c9bad1
deprecate app session methods in favor of session_interface
...
ref #1182
2017-05-29 13:35:02 -07:00
David Lord
b8eba0a3fa
use existing response.vary property to set vary header
...
closes #2345
2017-05-29 10:09:24 -07:00
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/'
2017-05-28 14:08:53 -07:00
David Lord
a37f675ccb
Merge remote-tracking branch 'origin/0.10-maintenance'
...
refactor make_test_environ_builder
2017-05-28 07:25:15 -07:00
Junior Báez
4f689c41d9
#2341 : Accept default argument value when args lenght equal 1
2017-05-27 18:02:18 -04:00
Kenneth Reitz
7c0b36f146
cleanup #2326
2017-05-26 09:16:45 -04:00
Kenneth Reitz
090109b637
Merge pull request #2326 from HndrkMkt/#2264-handle-app-factory-in-FLASK_APP
...
Handle app factory with arguments in FLASK_APP
2017-05-25 14:57:17 -07:00
Kenneth Reitz
d911c897ee
Merge branch 'master' into master
2017-05-25 14:22:53 -07:00
Hendrik Makait
48c2925664
Factor in code review comments and refactor functions to be more naturally split.
2017-05-25 11:28:20 -07:00
David Lord
bdf31cd423
extract patch_vary_header to helpers
2017-05-25 10:26:02 -07:00
Hendrik Makait
7a1a594b26
Factor out call_factory_from_regex function
2017-05-25 10:11:42 -07:00
Hendrik Makait
7106fb6357
Handle app factory with arguments in FLASK_APP
2017-05-25 10:11:42 -07:00
Nina Zakharenko
e7cd68ba58
Don't overwrite Vary header when setting for cookie access #2317
2017-05-24 20:05:11 -07:00
David Lord
38df3df735
shorten cli factory name
...
[ci skip]
2017-05-23 16:19:41 -07:00
Hendrik Makait
ae41df9a77
Check if app factory takes script_info argument and call it with(out) script_info as an argument depending on that
2017-05-23 13:48:42 -07:00
David Lord
ce813ae521
Merge pull request #2316 from ka7eh/automatic-options-in-views
...
Adds provide_automatic_options to Class-based Views
2017-05-23 12:46:31 -07:00
David Lord
e206764955
Merge pull request #2314 from cerickson/errorhandler
...
Added support for generic HTTPException handlers on app and blueprints
2017-05-23 11:51:17 -07:00
kaveh
75f537fb87
Adds provide_automatic_options to Class-based Views
2017-05-23 11:51:13 -07:00
David Lord
cd593bf117
Merge pull request #2307 from neilvictorgrey/master
...
For Issue #2286 : Update unittest references
2017-05-23 11:50:31 -07:00
cerickson
361dba7e3a
removed dupe text from merge
2017-05-23 10:49:01 -07:00
cerickson
4f815015b8
Added support for generic HTTPException handlers on app and blueprints
...
Error handlers are now returned in order of blueprint:code, app:code,
blueprint:HTTPException, app:HTTPException, None
Corresponding tests also added.
Ref issue #941 , pr #1383 , #2082 , #2144
2017-05-23 10:45:42 -07:00
Florian Sachs
668061a5fc
Register errorhandlers for Exceptions
...
Allow a default errorhandler by registering
an errorhandler for HTTPException
tests included
2017-05-23 10:34:31 -07:00
Andrey Kislyuk
11d2eec3ac
Fix refactoring error in static_folder docstring ( #2310 )
2017-05-22 23:46:22 -07:00
Neil Grey
65fc888172
For Issue #2286 : Replaces references to unittest in the documentation with pytest
2017-05-22 17:36:55 -07:00
David Lord
01ddf54b87
adjust for loop style
2017-05-22 16:12:23 -07:00
David Lord
7ecdbcfa2b
show error if multiple Flask instances are detected
...
add changelog
2017-05-22 15:48:08 -07:00
Hendrik Makait
b4eb6534d5
Remove unnecessary checks and reformat NoAppException messages
2017-05-22 14:26:00 -07:00
Hendrik Makait
ced719ea18
Auto-detect create_app and make_app factory functions
2017-05-22 12:30:18 -07:00
David Lord
5d9dd0b379
set session accessed for setdefault
2017-05-20 13:00:17 -07:00
David Lord
ae133aa173
reorder session cookie checks to deleted, accessed, modified
2017-05-20 12:11:37 -07:00
David Lord
e2f4c0ac16
Merge branch 'master' into vary-cookies
2017-05-19 09:44:06 -07:00
David Lord
2a65794306
safe_join on Windows uses posixpath
...
fixes #2033
closes #2059
2017-05-15 16:58:01 -07:00
David Lord
f75ad9fca2
refactor session cookie domain logic
...
cache result of session cookie domain
add warnings for session cookie domain issues
add changelog
2017-05-13 21:59:00 -07:00
José Oliveira
c3d49e29ea
show warning if session cookie domain is ip
...
closes #2007
2017-05-13 21:47:43 -07:00
wangbing
160999e882
Removed unused import
2017-05-10 00:34:36 +08:00
David Lord
7ad79583b9
add sort by match order
...
sort by endpoint by default
combine sort flags
sort methods
ignore HEAD and OPTIONS methods by default
rearrange columns
use format to build row format string
rework tests
add changelog
2017-04-26 10:26:59 -07:00
David Lord
717e45ab15
Merge branch 'master' into routes-command
2017-04-25 13:13:10 -07:00
David Lord
501f043125
clean up preprocess_request docs
...
[ci skip]
2017-04-25 12:03:08 -07:00
David Lord
bc7dae3d5a
Merge branch 'master' into AvivC-improve-docs-in-Flask.preprocess_request
2017-04-25 09:43:18 -07:00
David Lord
697f7b9365
refactor make_response to be easier to follow
...
* be explicit about how tuples are unpacked
* allow bytes for status value
* allow Headers for headers value
* use TypeError instead of ValueError
* errors are more descriptive
* document that view must not return None
* update documentation about return values
* test more response types
* test error messages
closes #1676
2017-04-25 08:30:48 -07:00
David Lord
46f83665ef
clean up blueprint json support
...
add changelog for #1898
2017-04-24 10:16:50 -07:00
David Lord
74b3f7e04c
Merge pull request #1898 from RaHus/per_blueprint_jsoncoding_#1710
...
Per blueprint jsoncoding #1710
2017-04-24 10:16:20 -07:00
David Lord
13754b6d11
ensure error while opening session pops context
...
errors will be handled by the app error handlers
closes #1538 , closes #1528
2017-04-22 13:57:04 -07:00
David Lord
648344d4e8
use mro to collect methods
...
ignore methods attr unless explicitly set
add changelog
2017-04-21 10:43:02 -07:00
David Lord
0d9d3d8f92
Merge branch 'master' into figome-multiple-inheritance
2017-04-21 10:33:29 -07:00