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
74b3f7e04c
Merge pull request #1898 from RaHus/per_blueprint_jsoncoding_#1710
...
Per blueprint jsoncoding #1710
8 years ago
David Lord
8d515a644f
Merge pull request #2254 from davidism/pop-context-on-session-error
...
Ensure error while opening session pops context
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
f22da31e7f
Merge pull request #2191 from SergioDS/master
...
Updated documentation for being able to use init_db method
8 years ago
David Lord
9b892e2225
Merge pull request #2252 from davidism/method-view-inheritance
...
Continue #1936 : Add the ability to combine MethodViews
8 years ago
David Lord
648344d4e8
use mro to collect methods
...
ignore methods attr unless explicitly set
add changelog
8 years ago
David Lord
0d9d3d8f92
Merge branch 'master' into figome-multiple-inheritance
8 years ago
David Lord
9569e8c956
Merge pull request #2249 from davidism/provide-automatic-options
...
Continue #1489 : Add kwarg to disable auto OPTIONS on add_url_rule
8 years ago
David Lord
97e2cd0a5a
update changelog
...
move test next to existing test, rename
reword / reflow param doc
8 years ago
David Lord
8ad4f476aa
Merge branch 'master' into jrmccarthy-master
8 years ago
David Lord
f4a1ca8fc8
Merge pull request #2017 from rocambolesque/patch-1
...
Add scheme to url_build error handler parameters
8 years ago
David Lord
e50767cfca
add test for build error special values
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
f0c714a01b
Merge pull request #1886 from dawran6/test_bp_endpoint_dec
...
Enhance code coverage for Blueprint.endpoint
8 years ago
David Lord
4ff84d537a
get mtime in utc
8 years ago
David Lord
cfd3e50ab6
use app.testing property instead of config
8 years ago
David Lord
5b9b180191
Merge pull request #2117 from accraze/testing-docs-fix
...
Added missing testing config
8 years ago
David Lord
03857cc48a
use app.testing property instead of config
8 years ago
accraze
1caa9de628
Added missing testing config
...
fixes #1302
8 years ago
David Lord
7005c2d534
Merge pull request #2242 from davidism/utcfromtimestamp
...
get mtime in utc
8 years ago
David Lord
bf6910a639
get mtime in utc
8 years ago
David Lord
78cb96fde0
Merge pull request #2238 from davidism/bugfix/latin1-filename
...
filename can be latin-1, not just ascii
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
ka7
e13eaeeaf2
Fix typo in docs ( #2237 )
8 years ago
David Lord
aafb80c527
add changelog for #2223
8 years ago
David Lord
8b45009dbc
Merge pull request #2223 from antlarr/master
...
Fix send_file's attachment_filename to work with non-ascii filenames
8 years ago
David Lord
f790ab7177
need to test against raw header
...
parsing prefers the last value parsed for the option
8 years ago
David Lord
c1973016ea
style cleanup
...
break out header parts in test
test for no filename* parameter for ascii header
8 years ago
Antonio Larrosa
d50a5db5ed
Keep using only filename if it's valid ascii
8 years ago
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 .
8 years ago
Grey Li
ec18fe9477
Add example for virtualenv integration in cli docs ( #2234 )
8 years ago
David Lord
d04d36842b
Merge pull request #2231 from asilversempirical/patch-1
...
Update out of date jsonify documentation
8 years ago
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.
8 years ago
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.
8 years ago
Markus Unterwaditzer
de555c82ce
Merge branch '0.12-maintenance'
8 years ago
Markus Unterwaditzer
c935eaceaf
Revert "Handle BaseExceptions ( #2222 )"
...
This reverts commit 1d4448abe3
.
8 years ago
Markus Unterwaditzer
07a705888c
Bump to dev version
8 years ago
Markus Unterwaditzer
a34d0e6878
Bump version number to 0.12.1
8 years ago
Markus Unterwaditzer
f7d6d4d4f6
Prepare for 0.12.1
8 years ago
Markus Unterwaditzer
80c7db638c
Correct changelog
8 years ago
Markus Unterwaditzer
c28a168f35
Merge branch 'Diggsey-db-handle-baseexceptions' into 0.12-maintenance
8 years ago
Diggory Blake
6f7847e3c4
Make test more idiomatic
8 years ago
Diggory Blake
d0e2e7b66c
Add test and changes
8 years ago
Diggory Blake
12c49c75fb
Handle BaseExceptions
8 years ago
Diggory Blake
1d4448abe3
Handle BaseExceptions ( #2222 )
...
* Handle BaseExceptions
* Add test and changes
* Make test more idiomatic
8 years ago
Antonio Larrosa
bf023e7dc0
Remove unidecode dependency and use unicodedata instead
...
I found a way to remove the unidecode dependency without sacrificing
much by using unicodedata.normalize .
8 years ago
Antonio Larrosa
6ef45f30ab
Fix previous commits to work with python 2 and python 3
...
Also, parse_options_header seems to interpret filename* so we better
test the actual value used in the headers (and since it's valid
in any order, use a set to compare)
8 years ago