Commit graph

2997 commits

Author SHA1 Message Date
tristan fisher
53ff054fd3 Fixes grammar and phrasing on envvar how-to 2017-06-09 10:54:47 -04:00
tristan fisher
067686b471 Add basic how-to on using envvars for config 2017-06-09 10:19:08 -04:00
David Lord
9d82993422 Merge pull request #2364 from davidism/xss-note
mention csp for javascript: uri xss
2017-06-06 09:22:49 -07:00
David Lord
15756da1f0
mention csp for javascript: uri xss
closes #2174
[ci skip]
2017-06-06 09:21:44 -07:00
David Lord
45946028e7 Merge pull request #2363 from davidism/inherited-members
document inherited attributes for Flask and Blueprint
2017-06-06 07:52:55 -07:00
David Lord
235c830759
document inherited attributes for Flask and Blueprint
closes #480
[ci skip]
2017-06-06 07:51:52 -07:00
David Lord
b80cf057fc Merge pull request #2362 from davidism/remove-error-handler-cache
Remove error handler cache
2017-06-05 06:34:49 -07:00
David Lord
b5f4c52150
don't cache error handlers for exception mro
closes #2267, closes #1433
2017-06-05 06:24:08 -07:00
David Lord
5c12acefbb
failing test 2017-06-05 06:14:13 -07:00
David Lord
706e67ed9e Merge pull request #2361 from greyli/patch-3
Include flask.json package in setup()
2017-06-05 05:03:50 -07:00
Grey Li
16396248b8 Include flask.json package in setup() 2017-06-05 16:11:16 +08:00
David Lord
f29fa0d56b Merge pull request #2359 from davidism/cli-warning
Be smarter about adding ".cli" to reloader command
2017-06-04 12:38:34 -07:00
David Lord
12c45f06a5
remove unused import 2017-06-04 12:38:10 -07:00
David Lord
fa7e8d6073
be smarter about adding ".cli" to reloader command
python -m flask.cli raises an import warning on > 2.6
it's only needed on 2.6, "flask" works otherwise
closes #2357
2017-06-04 12:26:21 -07:00
David Lord
63129e8426 Merge pull request #2358 from davidism/json-mixin
JSON support for test client and Response
2017-06-04 12:02:40 -07:00
David Lord
e97253e4c1
clean up JSON code and docs 2017-06-04 11:44:00 -07:00
David Lord
dbc70c9274
Merge remote-tracking branch 'remotes/origin/master' into json-mixin 2017-06-04 09:42:39 -07:00
David Lord
3b678b7927 Merge pull request #2354 from davidism/stream-session
Only open session if request does not have open session
2017-06-03 12:26:15 -07:00
David Lord
6637e20174
only open session if request hasn't been pushed yet
closes #1348
2017-06-02 11:12:18 -07:00
David Lord
5978a0f55f
failing test for streaming session 2017-06-02 11:07:53 -07:00
David Lord
49f3e96844 Merge pull request #2353 from grantwwu/patch-1
Clarify documentation for json parsing
2017-06-02 10:23:51 -07:00
David Lord
217d5f9bc0
mention mimetype and is_json 2017-06-02 10:17:40 -07:00
David Lord
62406e667c Merge pull request #2352 from davidism/json-object-hook
Make session serializer extensible
2017-06-02 10:07:57 -07:00
David Lord
fd8b95952c
add tests for flask.json.tag 2017-06-02 10:01:30 -07:00
Grant Wu
daf85d3725 Clarify documentation for json parsing
Documentation does not currently mention that is_json accepts mimetypes that are not strictly application/json.
2017-06-02 12:00:54 -04:00
David Lord
9bee2500dd
finish documentation
[ci skip]
2017-06-02 08:09:37 -07:00
David Lord
bbd15d53ad
docs style cleanup
[ci skip]
2017-06-02 07:03:22 -07:00
David Lord
ca176cb903
pass serializer at tag init instead of to each method
split tagged dict and passthrough into separate cases
add docstrings
2017-06-02 06:36:13 -07:00
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
2017-06-01 22:47:23 -07:00
David Lord
ea2e9609bc
Merge branch 'master' into json-object-hook 2017-06-01 06:40:27 -07:00
David Lord
c7f433c49b Merge pull request #2350 from davidism/errorhandler
show nice message when registering error handler for unknown code
2017-05-31 21:04:21 -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
9049755e3f Merge pull request #2348 from davidism/bad-request
make debugging bad key errors easier
2017-05-29 19:53:18 -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
fb90c310b9 Merge pull request #2347 from davidism/session-interface
deprecate app session methods in favor of session_interface
2017-05-29 13:42:06 -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
abf54c8182
fix some config names in new doc 2017-05-29 10:29:06 -07:00
David Lord
b7eca826aa Merge pull request #2346 from davidism/2345-vary
use existing response.vary property to set vary header
2017-05-29 10:16:29 -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
5797416544 Merge pull request #2344 from davidism/application-root
APPLICATION_ROOT defaults to '/'
2017-05-28 14:17:56 -07:00
David Lord
4a53840df0
APPLICATION_ROOT defaults to '/' 2017-05-28 14:08:53 -07:00
David Lord
60feecc26c
reformat config from table to linkable sections 2017-05-28 14:04:18 -07:00
David Lord
399ac3c54f
update changelog
[ci skip]
2017-05-28 11:52:01 -07:00
David Lord
90389140cc Merge pull request #2343 from davidism/tests
update development resources
2017-05-28 10:42:16 -07:00
David Lord
3c7625e8c0
update development resources
fix tox to test examples again
add detox tox env for faster testing
clean up makefile, add tox target
add extra group for installing dev requirements
clean up contributing doc, build with docs
expand issue template
add pull request template
2017-05-28 10:26:07 -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
David Lord
aeb82a404f Merge pull request #2342 from jrbaez01/issue/#2341-accept-one-default-argument
#2341: Accept default argument value when args lenght equal 1
2017-05-27 18:09:35 -07:00
Junior Báez
4f689c41d9 #2341: Accept default argument value when args lenght equal 1 2017-05-27 18:02:18 -04:00