parent
bdbca923ef
commit
c5900a1adf
9 changed files with 19 additions and 19 deletions
18
flask/app.py
18
flask/app.py
|
|
@ -120,7 +120,7 @@ class Flask(_PackageBoundObject):
|
|||
The `instance_path` and `instance_relative_config` parameters were
|
||||
added.
|
||||
|
||||
.. versionadded:: 1.0
|
||||
.. versionadded:: 0.11
|
||||
The `root_path` parameter was added.
|
||||
|
||||
:param import_name: the name of the application package
|
||||
|
|
@ -159,7 +159,7 @@ class Flask(_PackageBoundObject):
|
|||
|
||||
#: The class that is used for the Jinja environment.
|
||||
#:
|
||||
#: .. versionadded:: 1.0
|
||||
#: .. versionadded:: 0.11
|
||||
jinja_environment = Environment
|
||||
|
||||
#: The class that is used for the :data:`~flask.g` instance.
|
||||
|
|
@ -198,7 +198,7 @@ class Flask(_PackageBoundObject):
|
|||
#: 1. Default values for certain config options.
|
||||
#: 2. Access to config values through attributes in addition to keys.
|
||||
#:
|
||||
#: .. versionadded:: 1.0
|
||||
#: .. versionadded:: 0.11
|
||||
config_class = Config
|
||||
|
||||
#: The debug flag. Set this to ``True`` to enable debugging of the
|
||||
|
|
@ -481,7 +481,7 @@ class Flask(_PackageBoundObject):
|
|||
#: A list of shell context processor functions that should be run
|
||||
#: when a shell context is created.
|
||||
#:
|
||||
#: .. versionadded:: 1.0
|
||||
#: .. versionadded:: 0.11
|
||||
self.shell_context_processors = []
|
||||
|
||||
#: all the attached blueprints in a dictionary by name. Blueprints
|
||||
|
|
@ -683,7 +683,7 @@ class Flask(_PackageBoundObject):
|
|||
this function to customize the behavior.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
.. versionchanged:: 1.0
|
||||
.. versionchanged:: 0.11
|
||||
``Environment.auto_reload`` set in accordance with
|
||||
``TEMPLATES_AUTO_RELOAD`` configuration option.
|
||||
"""
|
||||
|
|
@ -772,7 +772,7 @@ class Flask(_PackageBoundObject):
|
|||
application. This runs all the registered shell context
|
||||
processors.
|
||||
|
||||
.. versionadded:: 1.0
|
||||
.. versionadded:: 0.11
|
||||
"""
|
||||
rv = {'app': self, 'g': g}
|
||||
for processor in self.shell_context_processors:
|
||||
|
|
@ -893,7 +893,7 @@ class Flask(_PackageBoundObject):
|
|||
to override the client to be used by setting the
|
||||
:attr:`test_client_class` attribute.
|
||||
|
||||
.. versionchanged:: 1.0
|
||||
.. versionchanged:: 0.11
|
||||
Added `**kwargs` to support passing additional keyword arguments to
|
||||
the constructor of :attr:`test_client_class`.
|
||||
"""
|
||||
|
|
@ -969,7 +969,7 @@ class Flask(_PackageBoundObject):
|
|||
def iter_blueprints(self):
|
||||
"""Iterates over all blueprints by the order they were registered.
|
||||
|
||||
.. versionadded:: 1.0
|
||||
.. versionadded:: 0.11
|
||||
"""
|
||||
return iter(self._blueprint_order)
|
||||
|
||||
|
|
@ -1418,7 +1418,7 @@ class Flask(_PackageBoundObject):
|
|||
def shell_context_processor(self, f):
|
||||
"""Registers a shell context processor function.
|
||||
|
||||
.. versionadded:: 1.0
|
||||
.. versionadded:: 0.11
|
||||
"""
|
||||
self.shell_context_processors.append(f)
|
||||
return f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue