Skip to content
Myr

Merge branch 'master' of github.com:mitsuhiko/flask

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

authored by Armin Ronacher · committed by Armin Ronacher · parents 7503bde, 5c3b161 · Browse files · 4 files+5 added−5 removed
This commit

State

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

Diff stats

4 files+5 added−5 removed

  • other:+5 added−5 removed

4 files+5 added−5 removed

modified:docs/upgrading.rst+2 added-2 removed
62 unmodified lines
63If you maintain an extension that was using :data:`~flask._request_ctx_stack`64before, please consider changing to :data:`~flask._app_ctx_stack` if it makes65sense for your extension. For instance, the app context stack makes sense for66extensions which connect to databases. Using the app context stack instead of67the request stack will make extensions more readily handle use cases outside of68requests.67the request context stack will make extensions more readily handle use cases 68outside of requests.6970Version 0.871-----------72
300 unmodified lines
modified:flask/app.py+1 added-1 removed
872 unmodified lines
873 """874 return self.session_interface.make_null_session(self)875876 def register_module(self, module, **options):877 """Registers a module with this application. The keyword argument877 """Registers a module with this application. The keyword arguments878 of this function are the same as the ones for the constructor of the879 :class:`Module` class and will override the values of the module if880 provided.881
1000 unmodified lines
modified:flask/json.py+1 added-1 removed
117 unmodified lines
118119 This function can return ``unicode`` strings or ascii-only bytestrings by120 default which coerce into unicode strings automatically. That behavior by121 default is controlled by the ``JSON_AS_ASCII`` configuration variable122 and can be overriden by the simplejson ``ensure_ascii`` parameter.122 and can be overridden by the simplejson ``ensure_ascii`` parameter.123 """124 _dump_arg_defaults(kwargs)125 encoding = kwargs.pop('encoding', None)126 rv = _json.dumps(obj, **kwargs)
117 unmodified lines
modified:flask/wrappers.py+1 added-1 removed
125 unmodified lines
126 """Parses the incoming JSON request data and returns it. If127 parsing fails the :meth:`on_json_loading_failed` method on the128 request object will be invoked. By default this function will129 only load the json data if the mimetype is ``application/json``130 but this can be overriden by the `force` parameter.130 but this can be overridden by the `force` parameter.131132 :param force: if set to `True` the mimetype is ignored.133 :param silent: if set to `True` this method will fail silently134 and return `None`.
65 unmodified lines