Skip to content
Myr

s/1.0/0.11/ in versionadded/versionchanged markers

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #1817

authored by ThiefMaster · committed by ThiefMaster · parent bdbca92 · Browse files · 9 files+19 added−19 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+19 added−19 removed

  • other:+19 added−19 removed

9 files+19 added−19 removed

modified:docs/cli.rst+1 added-1 removed
1 unmodified line
23Command Line Interface4======================56.. versionadded:: 1.06.. versionadded:: 0.1178.. currentmodule:: flask910One of the nice new features in Flask 1.0 is the built-in integration of
249 unmodified lines
modified:docs/config.rst+1 added-1 removed
239 unmodified lines
240241.. versionadded:: 0.10242 ``JSON_AS_ASCII``, ``JSON_SORT_KEYS``, ``JSONIFY_PRETTYPRINT_REGULAR``243244.. versionadded:: 1.0244.. versionadded:: 0.11245 ``SESSION_REFRESH_EACH_REQUEST``, ``TEMPLATES_AUTO_RELOAD``,246 ``LOGGER_HANDLER_POLICY``, ``EXPLAIN_TEMPLATE_LOADING``247248Configuring from Files
216 unmodified lines
modified:docs/errorhandling.rst+1 added-1 removed
61 unmodified lines
62You are however not limited to :exc:`~werkzeug.exceptions.HTTPException`63or HTTP status codes but can register a handler for every exception class you64like.6566.. versionchanged:: 1.066.. versionchanged:: 0.116768 Errorhandlers are now prioritized by specificity of the exception classes69 they are registered for instead of the order they are registered in.70
283 unmodified lines
modified:flask/app.py+9 added-9 removed
118 unmodified lines
119 .. versionadded:: 0.8120 The `instance_path` and `instance_relative_config` parameters were121 added.122123 .. versionadded:: 1.0123 .. versionadded:: 0.11124 The `root_path` parameter was added.125126 :param import_name: the name of the application package127 :param static_url_path: can be used to specify a different path for the
30 unmodified lines
158 response_class = Response159160 #: The class that is used for the Jinja environment.161 #:162 #: .. versionadded:: 1.0162 #: .. versionadded:: 0.11163 jinja_environment = Environment164165 #: The class that is used for the :data:`~flask.g` instance.166 #:
30 unmodified lines
197 #:198 #: 1. Default values for certain config options.199 #: 2. Access to config values through attributes in addition to keys.200 #:201 #: .. versionadded:: 1.0201 #: .. versionadded:: 0.11202 config_class = Config203204 #: The debug flag. Set this to ``True`` to enable debugging of the205 #: application. In debug mode the debugger will kick in when an unhandled
274 unmodified lines
480481 #: A list of shell context processor functions that should be run482 #: when a shell context is created.483 #:484 #: .. versionadded:: 1.0484 #: .. versionadded:: 0.11485 self.shell_context_processors = []486487 #: all the attached blueprints in a dictionary by name. Blueprints488 #: can be attached multiple times so this dictionary does not tell
193 unmodified lines
682 the Jinja2 globals and filters after initialization. Override683 this function to customize the behavior.684685 .. versionadded:: 0.5686 .. versionchanged:: 1.0686 .. versionchanged:: 0.11687 ``Environment.auto_reload`` set in accordance with688 ``TEMPLATES_AUTO_RELOAD`` configuration option.689 """690 options = dict(self.jinja_options)
80 unmodified lines
771 """Returns the shell context for an interactive shell for this772 application. This runs all the registered shell context773 processors.774775 .. versionadded:: 1.0775 .. versionadded:: 0.11776 """777 rv = {'app': self, 'g': g}778 for processor in self.shell_context_processors:779 rv.update(processor())
112 unmodified lines
892 The `use_cookies` parameter was added as well as the ability893 to override the client to be used by setting the894 :attr:`test_client_class` attribute.895896 .. versionchanged:: 1.0896 .. versionchanged:: 0.11897 Added `**kwargs` to support passing additional keyword arguments to898 the constructor of :attr:`test_client_class`.899 """900 cls = self.test_client_class
67 unmodified lines
968969 def iter_blueprints(self):970 """Iterates over all blueprints by the order they were registered.971972 .. versionadded:: 1.0972 .. versionadded:: 0.11973 """974 return iter(self._blueprint_order)975976 @setupmethod
440 unmodified lines
1417 @setupmethod1418 def shell_context_processor(self, f):1419 """Registers a shell context processor function.14201421 .. versionadded:: 1.01421 .. versionadded:: 0.111422 """1423 self.shell_context_processors.append(f)1424 return f1425
580 unmodified lines
modified:flask/blueprints.py+1 added-1 removed
405 unmodified lines
406 function, akin to the :meth:`~flask.Flask.register_error_handler`407 application-wide function of the :class:`~flask.Flask` object but408 for error handlers limited to this blueprint.409410 .. versionadded:: 1.0410 .. versionadded:: 0.11411 """412 self.record_once(lambda s: s.app._register_error_handler(413 self.name, code_or_exception, f))
modified:flask/config.py+3 added-3 removed
174 unmodified lines
175 root path.176 :param silent: set to ``True`` if you want silent failure for missing177 files.178179 .. versionadded:: 1.0179 .. versionadded:: 0.11180 """181 filename = os.path.join(self.root_path, filename)182183 try:
9 unmodified lines
193 def from_mapping(self, *mapping, **kwargs):194 """Updates the config like :meth:`update` ignoring items with non-upper195 keys.196197 .. versionadded:: 1.0197 .. versionadded:: 0.11198 """199 mappings = []200 if len(mapping) == 1:201 if hasattr(mapping[0], 'items'):
36 unmodified lines
238 dictionary should be lowercase239 :param trim_namespace: a flag indicating if the keys of the resulting240 dictionary should not include the namespace241242 .. versionadded:: 1.0242 .. versionadded:: 0.11243 """244 rv = {}245 for k, v in iteritems(self):246 if not k.startswith(namespace):
12 unmodified lines
modified:flask/json.py+1 added-1 removed
233 unmodified lines
234 "id": 42235 }236237238 .. versionchanged:: 1.0238 .. versionchanged:: 0.11239 Added support for serializing top-level arrays. This introduces a240 security risk in ancient browsers. See :ref:`json-security` for details.241242 This function's response will be pretty printed if it was not requested
30 unmodified lines
modified:flask/sessions.py+1 added-1 removed
261 unmodified lines
262 permanent.263264 This check is usually skipped if sessions get deleted.265266 .. versionadded:: 1.0266 .. versionadded:: 0.11267 """268 if session.modified:269 return True270 save_each = app.config['SESSION_REFRESH_EACH_REQUEST']
92 unmodified lines
modified:flask/wrappers.py+1 added-1 removed
111 unmodified lines
112 """Indicates if this request is JSON or not. By default a request113 is considered to include JSON data if the mimetype is114 :mimetype:`application/json` or :mimetype:`application/*+json`.115116 .. versionadded:: 1.0116 .. versionadded:: 0.11117 """118 mt = self.mimetype119 if mt == 'application/json':120 return True
84 unmodified lines