Skip to content

Commit ef4ee5a

Browse files
committed
update descriptions on pages
1 parent 1d088d7 commit ef4ee5a

31 files changed

+85
-45
lines changed

content/pages/examples/flask/flask-app-badrequest.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-app-badrequest-examples
44
sortorder: 500021000
55
toc: False
66
sidebartitle: flask.app BadRequest
7-
meta: Python example code for the BadRequest class from the flask.app module of the Flask project.
7+
meta: Example code for understanding how to use the BadRequest class from the flask.app module of the Flask project.
88

99

1010
[BadRequest](https://github.com/pallets/flask/blob/master/src/flask/app.py)
@@ -38,15 +38,15 @@ import json
3838
import logging
3939
import re
4040
import traceback
41-
from typing import Dict, Optional
41+
from typing import Callable, Dict, List, Optional, Set
4242
import urllib.parse
4343

4444
from apispec import APISpec, yaml_utils
4545
from apispec.exceptions import DuplicateComponentNameError
4646
from flask import Blueprint, current_app, jsonify, make_response, request, Response
4747
from flask_babel import lazy_gettext as _
4848
import jsonschema
49-
from marshmallow import ValidationError
49+
from marshmallow import Schema, ValidationError
5050
from marshmallow_sqlalchemy.fields import Related, RelatedList
5151
import prison
5252
from sqlalchemy.exc import IntegrityError

content/pages/examples/flask/flask-app-flask.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-app-flask-examples
44
sortorder: 500021001
55
toc: False
66
sidebartitle: flask.app Flask
7-
meta: Python example code for the Flask class from the flask.app module of the Flask project.
7+
meta: Example code for understanding how to use the Flask class from the flask.app module of the Flask project.
88

99

1010
[Flask](https://github.com/pallets/flask/blob/master/src/flask/app.py) is

content/pages/examples/flask/flask-app-headers.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-app-headers-examples
44
sortorder: 500021002
55
toc: False
66
sidebartitle: flask.app Headers
7-
meta: Python example code for the Headers class from the flask.app module of the Flask project.
7+
meta: Example code for understanding how to use the Headers class from the flask.app module of the Flask project.
88

99

1010
[Headers](https://github.com/pallets/flask/blob/master/src/flask/app.py)

content/pages/examples/flask/flask-blueprints-blueprint.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-blueprints-blueprint-examples
44
sortorder: 500021003
55
toc: False
66
sidebartitle: flask.blueprints Blueprint
7-
meta: Python example code for the Blueprint class from the flask.blueprints module of the Flask project.
7+
meta: Example code for understanding how to use the Blueprint class from the flask.blueprints module of the Flask project.
88

99

1010
A Blueprint in [Flask](/flask.html) is

content/pages/examples/flask/flask-cli-flaskgroup.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-cli-flaskgroup-examples
44
sortorder: 500021004
55
toc: False
66
sidebartitle: flask.cli FlaskGroup
7-
meta: Python example code for the FlaskGroup class from the flask.cli module of the Flask project.
7+
meta: Example code for understanding how to use the FlaskGroup class from the flask.cli module of the Flask project.
88

99

1010
[FlaskGroup](https://github.com/pallets/flask/blob/master/src/flask/cli.py)

content/pages/examples/flask/flask-cli-scriptinfo.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-cli-scriptinfo-examples
44
sortorder: 500021005
55
toc: False
66
sidebartitle: flask.cli ScriptInfo
7-
meta: Python example code for the ScriptInfo class from the flask.cli module of the Flask project.
7+
meta: Example code for understanding how to use the ScriptInfo class from the flask.cli module of the Flask project.
88

99

1010
[ScriptInfo](https://github.com/pallets/flask/blob/master/src/flask/cli.py)

content/pages/examples/flask/flask-cli-with-appcontext.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: flask-cli-with-appcontext-examples
44
sortorder: 500021006
55
toc: False
66
sidebartitle: flask.cli with_appcontext
7-
meta: Python example code for the with_appcontext callable from the flask.cli module of the Flask project.
7+
meta: Python example code that shows how to use the with_appcontext callable from the flask.cli module of the Flask project.
88

99

1010
[with_appcontext](https://github.com/pallets/flask/blob/master/src/flask/cli.py)

content/pages/examples/flask/flask-ctx-after-this-request.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ slug: flask-ctx-after-this-request-examples
44
sortorder: 500021007
55
toc: False
66
sidebartitle: flask.ctx after_this_request
7-
meta: Python example code for the after_this_request callable from the flask.ctx module of the Flask project.
7+
meta: Python example code that shows how to use the after_this_request callable from the flask.ctx module of the Flask project.
88

99

10-
after_this_request is a callable within the flask.ctx module of the Flask project.
10+
[after_this_request](https://github.com/pallets/flask/blob/master/src/flask/ctx.py)
11+
is a function in the flask.ctx module of the [Flask](/flask.html)
12+
[web framework](/web-frameworks.html). The function's name is strongly
13+
descriptive of what it does and it particularly useful for modifying
14+
response objects, especially when you want a function other than the
15+
view function to modify a response.
1116

1217

1318
## Example 1 from Flask-Security-Too

content/pages/examples/flask/flask-ctx-has-app-context.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ slug: flask-ctx-has-app-context-examples
44
sortorder: 500021008
55
toc: False
66
sidebartitle: flask.ctx has_app_context
7-
meta: Python example code for the has_app_context callable from the flask.ctx module of the Flask project.
7+
meta: Python example code that shows how to use the has_app_context callable from the flask.ctx module of the Flask project.
88

99

10-
has_app_context is a callable within the flask.ctx module of the Flask project.
10+
[has_app_context](https://github.com/pallets/flask/blob/master/src/flask/ctx.py)
11+
is a function in the flask.ctx module that is similar to
12+
[has_request_context](/flask-ctx-has-request-context-examples.html)
13+
but for the
14+
[application context](https://flask.palletsprojects.com/en/1.1.x/appcontext/)
15+
rather than the request.
1116

1217

1318
## Example 1 from flask-restx

content/pages/examples/flask/flask-ctx-has-request-context.markdown

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ slug: flask-ctx-has-request-context-examples
44
sortorder: 500021009
55
toc: False
66
sidebartitle: flask.ctx has_request_context
7-
meta: Python example code for the has_request_context callable from the flask.ctx module of the Flask project.
7+
meta: Python example code that shows how to use the has_request_context callable from the flask.ctx module of the Flask project.
88

99

10-
has_request_context is a callable within the flask.ctx module of the Flask project.
10+
[has_request_context](https://github.com/pallets/flask/blob/master/src/flask/ctx.py)
11+
is a function within the flask.ctx module that is useful for
12+
determining if a
13+
[request context](https://flask.palletsprojects.com/en/1.1.x/reqcontext/)
14+
is available or not. There is a similar
15+
[has_app_context](/flask-ctx-has-app-context-examples.html)
16+
function as well that works for the
17+
[application context](https://flask.palletsprojects.com/en/1.1.x/appcontext/).
18+
1119

1220

1321
## Example 1 from Flask AppBuilder

0 commit comments

Comments
 (0)