David Lord
9bee2500dd
finish documentation
...
[ci skip]
8 years ago
David Lord
bbd15d53ad
docs style cleanup
...
[ci skip]
8 years ago
David Lord
ca176cb903
pass serializer at tag init instead of to each method
...
split tagged dict and passthrough into separate cases
add docstrings
8 years ago
David Lord
5e1ced3c05
make session serializer extensible
...
support serializing 1-item dicts with tag as key
refactor serializer into flask.json.tag module
continues #1452 , closes #1438 , closes #1908
8 years ago
David Lord
859d9a9d5c
show nice message when registering error handler for unknown code
...
clean up error handler docs
closes #1837
8 years ago
David Lord
8f3563cf79
fix operator precedence
8 years ago
David Lord
42905b8a55
set description for trap as well as debug
...
test for key error description
8 years ago
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
8 years ago
David Lord
b9c8c9bad1
deprecate app session methods in favor of session_interface
...
ref #1182
8 years ago
David Lord
b8eba0a3fa
use existing response.vary property to set vary header
...
closes #2345
8 years ago
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/'
8 years ago
Junior Báez
4f689c41d9
#2341 : Accept default argument value when args lenght equal 1
8 years ago
Kenneth Reitz
7c0b36f146
cleanup #2326
8 years ago
Hendrik Makait
48c2925664
Factor in code review comments and refactor functions to be more naturally split.
8 years ago
David Lord
bdf31cd423
extract patch_vary_header to helpers
8 years ago
Hendrik Makait
7a1a594b26
Factor out call_factory_from_regex function
8 years ago
Hendrik Makait
7106fb6357
Handle app factory with arguments in FLASK_APP
8 years ago
Nina Zakharenko
e7cd68ba58
Don't overwrite Vary header when setting for cookie access #2317
8 years ago
David Lord
38df3df735
shorten cli factory name
...
[ci skip]
8 years ago
Hendrik Makait
ae41df9a77
Check if app factory takes script_info argument and call it with(out) script_info as an argument depending on that
8 years ago
kaveh
75f537fb87
Adds provide_automatic_options to Class-based Views
8 years ago
cerickson
361dba7e3a
removed dupe text from merge
8 years ago
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
8 years ago
cerickson
637eae5489
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
8 years ago
Florian Sachs
668061a5fc
Register errorhandlers for Exceptions
...
Allow a default errorhandler by registering
an errorhandler for HTTPException
tests included
8 years ago
Andrey Kislyuk
11d2eec3ac
Fix refactoring error in static_folder docstring ( #2310 )
8 years ago
Neil Grey
65fc888172
For Issue #2286 : Replaces references to unittest in the documentation with pytest
8 years ago
David Lord
01ddf54b87
adjust for loop style
8 years ago
David Lord
7ecdbcfa2b
show error if multiple Flask instances are detected
...
add changelog
8 years ago
Hendrik Makait
b4eb6534d5
Remove unnecessary checks and reformat NoAppException messages
8 years ago
Hendrik Makait
ced719ea18
Auto-detect create_app and make_app factory functions
8 years ago
David Lord
5d9dd0b379
set session accessed for setdefault
8 years ago
David Lord
ae133aa173
reorder session cookie checks to deleted, accessed, modified
8 years ago
Markus Unterwaditzer
f347d3c59e
Bump to dev version
8 years ago
Markus Unterwaditzer
571334df8e
Bump version number to 0.12.2
8 years ago
David Lord
f7c35bf0d5
safe_join on Windows uses posixpath
...
fixes #2033
closes #2059
8 years ago
David Lord
2a65794306
safe_join on Windows uses posixpath
...
fixes #2033
closes #2059
8 years ago
David Lord
f75ad9fca2
refactor session cookie domain logic
...
cache result of session cookie domain
add warnings for session cookie domain issues
add changelog
8 years ago
José Oliveira
c3d49e29ea
show warning if session cookie domain is ip
...
closes #2007
8 years ago
wangbing
160999e882
Removed unused import
8 years ago
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
8 years ago
David Lord
501f043125
clean up preprocess_request docs
...
[ci skip]
8 years ago
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
8 years ago
David Lord
46f83665ef
clean up blueprint json support
...
add changelog for #1898
8 years ago
David Lord
13754b6d11
ensure error while opening session pops context
...
errors will be handled by the app error handlers
closes #1538 , closes #1528
8 years ago
David Lord
648344d4e8
use mro to collect methods
...
ignore methods attr unless explicitly set
add changelog
8 years ago
David Lord
97e2cd0a5a
update changelog
...
move test next to existing test, rename
reword / reflow param doc
8 years ago
rocambolesque
19fbe3a18f
Add scheme to url_build error handler parameters
8 years ago
Sobolev Nikita
7481844c98
Fix typo in app.py ( #2248 )
8 years ago
David Lord
09b49104f3
filename can be latin-1, not just ascii
...
only normalize basic name when utf-8 header is needed
ref #2223
8 years ago