Commit graph

2758 commits

Author SHA1 Message Date
David Lord
255375d72c Merge pull request #2271 from davidism/collapse-changelogs
Collapse old changelog directives
2017-05-04 18:42:33 -07:00
David Lord
75b85656dd
optionally enable sphinxcontrib.log_cabinet
collapses old changelog directives
closes #1704
closes #1867
2017-05-04 18:24:04 -07:00
David Lord
7bd54e9bd6 Merge pull request #2077 from liebald/patch-1
Mention existence of register_error_handler in errorpages.rst
2017-04-30 08:48:22 -07:00
David Lord
011a4b1899
clean up error handler docs 2017-04-30 08:20:13 -07:00
Benjamin Liebald
6032c94aeb
Mention existence of register_error_handler in errorpages.rst
See https://github.com/pallets/flask/issues/1837 for context.
2017-04-30 07:55:54 -07:00
David Lord
39d55525ac Merge pull request #2259 from davidism/routes-command
Add routes command
2017-04-26 10:43:18 -07: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
71b7c4f5f8 Merge pull request #2258 from davidism/preprocess_request-docs
Clean up preprocess_request docs
2017-04-25 12:06:39 -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
970a8009f1 Merge pull request #2256 from davidism/refactor-make_response
refactor make_response to be easier to follow
2017-04-25 08:46:22 -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
8d515a644f Merge pull request #2254 from davidism/pop-context-on-session-error
Ensure error while opening session pops context
2017-04-22 14:43:21 -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
f22da31e7f Merge pull request #2191 from SergioDS/master
Updated documentation for being able to use init_db method
2017-04-21 11:45:16 -07:00
David Lord
9b892e2225 Merge pull request #2252 from davidism/method-view-inheritance
Continue #1936: Add the ability to combine MethodViews
2017-04-21 11:16:18 -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
David Lord
9569e8c956 Merge pull request #2249 from davidism/provide-automatic-options
Continue #1489: Add kwarg to disable auto OPTIONS on add_url_rule
2017-04-21 08:31:11 -07:00
David Lord
97e2cd0a5a
update changelog
move test next to existing test, rename
reword / reflow param doc
2017-04-21 07:26:30 -07:00
David Lord
8ad4f476aa
Merge branch 'master' into jrmccarthy-master 2017-04-21 07:03:46 -07:00
David Lord
f4a1ca8fc8 Merge pull request #2017 from rocambolesque/patch-1
Add scheme to url_build error handler parameters
2017-04-20 09:10:27 -07:00
David Lord
e50767cfca
add test for build error special values 2017-04-20 08:52:37 -07:00
rocambolesque
19fbe3a18f
Add scheme to url_build error handler parameters 2017-04-20 08:30:07 -07:00
Sobolev Nikita
7481844c98 Fix typo in app.py (#2248) 2017-04-19 07:46:33 +02:00
David Lord
f0c714a01b Merge pull request #1886 from dawran6/test_bp_endpoint_dec
Enhance code coverage for Blueprint.endpoint
2017-04-14 09:22:12 -07:00
David Lord
5b9b180191 Merge pull request #2117 from accraze/testing-docs-fix
Added missing testing config
2017-04-13 16:45:24 -07:00
David Lord
03857cc48a
use app.testing property instead of config 2017-04-13 16:32:44 -07:00
accraze
1caa9de628
Added missing testing config
fixes #1302
2017-04-13 16:27:58 -07:00
David Lord
7005c2d534 Merge pull request #2242 from davidism/utcfromtimestamp
get mtime in utc
2017-04-13 15:14:26 -07:00
David Lord
bf6910a639
get mtime in utc 2017-04-13 14:55:56 -07:00
David Lord
78cb96fde0 Merge pull request #2238 from davidism/bugfix/latin1-filename
filename can be latin-1, not just ascii
2017-04-12 10:12:30 -07:00
David Lord
09b49104f3
filename can be latin-1, not just ascii
only normalize basic name when utf-8 header is needed
ref #2223
2017-04-12 09:59:25 -07:00
ka7
e13eaeeaf2 Fix typo in docs (#2237) 2017-04-11 21:44:32 +02:00
David Lord
aafb80c527
add changelog for #2223 2017-04-08 11:08:08 -07:00
David Lord
8b45009dbc Merge pull request #2223 from antlarr/master
Fix send_file's attachment_filename to work with non-ascii filenames
2017-04-08 10:54:20 -07:00
David Lord
f790ab7177
need to test against raw header
parsing prefers the last value parsed for the option
2017-04-08 10:33:06 -07:00
David Lord
c1973016ea
style cleanup
break out header parts in test
test for no filename* parameter for ascii header
2017-04-07 18:02:31 -07:00
Antonio Larrosa
d50a5db5ed Keep using only filename if it's valid ascii 2017-04-07 20:34:52 +02:00
jab
00d6e339ec Change Flask.__init__ to accept two new keyword arguments, host_matching and static_host. (#1560)
This enables host_matching to be set properly by the time the constructor adds
the static route, and enables the static route to be properly associated with
the required host.

Previously, you could only enable host_matching once your app was already
instantiated (e.g. app.url_map.host_matching = True), but at that point
the constructor would have already added the static route without host matching
and an associated host, leaving the static route in a broken state.

Fixes #1559.
2017-04-07 16:31:54 +02:00
Grey Li
ec18fe9477 Add example for virtualenv integration in cli docs (#2234) 2017-04-07 07:10:43 -07:00
David Lord
d04d36842b Merge pull request #2231 from asilversempirical/patch-1
Update out of date jsonify documentation
2017-04-06 08:31:25 -07:00
asilversempirical
d76d68cd38 Update out of date jsonify documentation
https://github.com/pallets/flask/pull/2193 changed the conditions for when jsonify pretty prints, but this comment wasn't updated.
2017-04-06 11:26:01 -04:00
Adam Geitgey
ae1ac2053b Correct imports in file upload example (#2230)
The example code uses `flash` but doesn't import it. So the code as written doesn't work.

This simply adds `flash` to the list of imports in the sample code.
2017-04-04 22:26:40 +02:00
Markus Unterwaditzer
de555c82ce Merge branch '0.12-maintenance' 2017-03-31 18:44:33 +02:00
Markus Unterwaditzer
c935eaceaf Revert "Handle BaseExceptions (#2222)"
This reverts commit 1d4448abe3.
2017-03-31 18:44:14 +02:00
Markus Unterwaditzer
07a705888c Bump to dev version 2017-03-31 18:43:52 +02:00