Randy Liou
19d33ecfa7
Add coverage for Blueprints.(app_)context_processor
...
Test both context_processor and app_context_processor functions.
Two context parameters are added into the context: one added to
the blueprint locally; another added to the app globally. The test
asserts the behaviors in both blueprint scope and the app scope.
The coverage for flask.blueprints is increased by 3%.
2017-05-22 13:09:22 -07:00
David Lord
7b58262372
Merge pull request #2293 from tullyrankin/debug-mode-2261
...
Debug mode 2261
2017-05-22 11:43:57 -07:00
Tully Rankin
b48d7e1231
Updated request context documentation.
2017-05-22 11:28:58 -07:00
Tully Rankin
3cf6c45d40
Updated documentation. Replaced term development mode with debug mode. #2261
2017-05-22 11:25:02 -07:00
David Lord
cc133917ba
Merge pull request #2288 from davidism/vary-cookies
...
Set "Vary: Cookie" header when session is accessed
2017-05-20 13:45:48 -07:00
David Lord
298bcfaeb6
set session accessed for setdefault
2017-05-20 13:00:17 -07:00
David Lord
c7b66249c0
reorder session cookie checks to deleted, accessed, modified
2017-05-20 12:11:37 -07:00
David Lord
409c8799d4
Merge branch 'master' into vary-cookies
2017-05-19 09:44:06 -07:00
Markus Unterwaditzer
6ec5ac101c
Merge branch '0.12-maintenance'
2017-05-16 08:40:31 +02:00
Markus Unterwaditzer
694af5346a
Bump to dev version
2017-05-16 08:40:08 +02:00
Markus Unterwaditzer
8ef0f3900a
Bump version number to 0.12.2
2017-05-16 08:39:30 +02:00
Markus Unterwaditzer
0bc80c1978
Release 0.12.2
2017-05-16 08:39:28 +02:00
Markus Unterwaditzer
2118644240
Merge branch '0.12-maintenance'
2017-05-16 08:34:53 +02:00
David Lord
935acefaf2
safe_join on Windows uses posixpath
...
fixes #2033
closes #2059
2017-05-16 08:34:37 +02:00
David Lord
5db26a894d
Merge pull request #2284 from davidism/windows-safe_join
...
safe_join on Windows uses posixpath
2017-05-15 17:11:34 -07:00
David Lord
9ada22dd94
safe_join on Windows uses posixpath
...
fixes #2033
closes #2059
2017-05-15 16:58:01 -07:00
David Lord
eee3feecc2
Merge pull request #2055 from geoffreybauduin/celery-documentation
...
Updated Celery pattern
2017-05-15 12:41:13 -07:00
David Lord
f8273fe496
explain when to use a task queue
...
remove deprecated abstract attr from celery
add explanation of example task
[ci skip]
2017-05-15 12:40:09 -07:00
David Lord
616bbaae4e
Merge branch 'master' into celery-documentation
2017-05-15 12:17:09 -07:00
David Lord
5fb00d369a
Merge pull request #2282 from davidism/session-cookie-domain
...
Refactor session cookie domain
2017-05-13 22:13:53 -07:00
David Lord
9c7e73e955
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
aea3c48d80
show warning if session cookie domain is ip
...
closes #2007
2017-05-13 21:47:43 -07:00
David Lord
715360d86a
Merge pull request #2279 from davidism/docs-after_this_request
...
Clean up deferred callback doc
2017-05-11 22:50:29 -07:00
David Lord
93341b9e7d
clean up deferred callback doc
...
remove doc about writing after_this_request
[ci skip]
2017-05-11 22:48:21 -07:00
David Lord
e43755669c
Merge pull request #1965 from vioan/master
...
Added a missing module to import statement
2017-05-11 22:38:36 -07:00
David Lord
722093b70e
Merge pull request #2277 from jlara310/master
...
Improve quickstart's Routing section
2017-05-11 22:32:00 -07:00
David Lord
35428d04a8
wrap lines
...
tighten up wording
remove any converter from quickstart
use correct rst code syntax
2017-05-11 22:31:19 -07:00
David Lord
df0aff5291
Merge pull request #2278 from davidism/installation-docs
...
Rewrite installation docs
2017-05-11 14:37:31 -07:00
David Lord
78a4f53a24
rewrite installation docs
...
discuss python version
discuss all dependencies
prefer python 3 in instructions
[ci skip]
2017-05-11 14:34:09 -07:00
David Lord
9f5cb930f6
Update CONTRIBUTING.rst
...
basic pytest can't handle examples, pass tests dir
2017-05-11 12:35:03 -07:00
Xephyr826
49e263937a
Improve Routing section
...
Edited the entire section for clarity and concision. I rewrote sentences
to make them shorter and to reduce ambiguity.
Added a code sample to show the path converter type
Removed the HTTP method overview. Although it was well written, the
overview wasn't necessary in the quickstart. Readers can easily find an
overview elsewhere.
2017-05-10 22:38:22 -07:00
David Lord
21cdc1eb61
Merge pull request #2213 from runartrollet/doc_virtenv_p3
...
Issue #2212 : documentation: virtualenv and python3
2017-05-09 11:04:23 -07:00
David Lord
8ca9443f43
Merge pull request #2276 from pigletfly/master
...
Removed unused import
2017-05-09 10:19:51 -07:00
wangbing
13b10506a4
Removed unused import
2017-05-10 00:34:36 +08:00
David Lord
4f3ee8256a
Merge pull request #2210 from Larivact/patch-2
...
Clarify APPLICATION_ROOT documentation
2017-05-09 08:47:23 -07:00
David Lord
2a80eff1c4
Merge pull request #1942 from jmsdvl/fix-1935
...
clarify blueprint 404 error handling in docs
2017-05-09 08:44:58 -07:00
David Lord
71bf32d95d
Merge pull request #2271 from davidism/collapse-changelogs
...
Collapse old changelog directives
2017-05-04 18:42:33 -07:00
David Lord
452f442a8e
optionally enable sphinxcontrib.log_cabinet
...
collapses old changelog directives
closes #1704
closes #1867
2017-05-04 18:24:04 -07:00
David Lord
854e7aab84
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
a81ad76f2d
clean up error handler docs
2017-04-30 08:20:13 -07:00
Benjamin Liebald
422b6c2df7
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
38826adb6b
Merge pull request #2259 from davidism/routes-command
...
Add routes command
2017-04-26 10:43:18 -07:00
David Lord
c279a827cc
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
57515e1887
Merge branch 'master' into routes-command
2017-04-25 13:13:10 -07:00
David Lord
28c5dcb67a
Merge pull request #2258 from davidism/preprocess_request-docs
...
Clean up preprocess_request docs
2017-04-25 12:06:39 -07:00
David Lord
066737d21c
clean up preprocess_request docs
...
[ci skip]
2017-04-25 12:03:08 -07:00
David Lord
33335b4c28
Merge branch 'master' into AvivC-improve-docs-in-Flask.preprocess_request
2017-04-25 09:43:18 -07:00
David Lord
1fd7d629c0
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
b54d8cfc5b
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
6bed207562
clean up blueprint json support
...
add changelog for #1898
2017-04-24 10:16:50 -07:00