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 e59e005, ab1be65 · Browse files · 9 files·+26 added−11 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+26 added−11 removed
- other:+26 added−11 removed
Provenance
- Commit
6a62144- Tree
df94b88- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent 1
e59e005- Parent 2
ab1be65
9 files changed+26 added−11 removed
modified:docs/advanced_foreword.rst+1 added-1 removed
62 unmodified lines63 compatible Python code64 <http://lucumr.pocoo.org/2011/1/22/forwards-compatible-python/>`_.65 66 If you do want to dive into Python 3 already have a look at the67-:ref:`python3_support` page.67+:ref:`python3-support` page.68 69 Continue to :ref:`installation` or the :ref:`quickstart`.modified:docs/api.rst+4 added-4 removed
363 unmodified lines364 365 from flask import json366 367 For usage examples, read the :mod:`json` documentation in the standard368-lirbary. The following extensions are by default applied to the stdlib's368+library. The following extensions are by default applied to the stdlib's369 JSON module:370 371 1. ``datetime`` objects are serialized as :rfc:`822` strings.372 2. Any object with an ``__html__`` method (like :class:`~flask.Markup`)373- will ahve that method called and then the return value is serialized373+ will have that method called and then the return value is serialized374 as string.375 376 The :func:`~htmlsafe_dumps` function of this json module is also available377 as filter called ``|tojson`` in Jinja2. Note that inside `script`126 unmodified lines504 .. versionadded:: 0.6505 506 .. data:: signals_available507 508- `True` if the signalling system is available. This is the case508+ `True` if the signaling system is available. This is the case509 when `blinker`_ is installed.510 511 .. data:: template_rendered512 214 unmodified lines727 basis.728 729 - `required_methods`: if this attribute is set, Flask will always add730 these methods when registering a URL rule even if the methods were731- explicitly overriden in the ``route()`` call.731+ explicitly overridden in the ``route()`` call.732 733 Full example::734 735 def index():11 unmodified linesmodified:docs/quickstart.rst+3 added-3 removed
316 unmodified lines317 Now the interesting part is that in HTML4 and XHTML1, the only methods a318 form can submit to the server are `GET` and `POST`. But with JavaScript319 and future HTML standards you can use the other methods as well. Furthermore320 HTTP has become quite popular lately and browsers are no longer the only321-clients that are using HTTP. For instance, many revision control system321+clients that are using HTTP. For instance, many revision control systems322 use it.323 324 .. _HTTP RFC: http://www.ietf.org/rfc/rfc2068.txt325 339 unmodified lines665 ---------------666 667 The return value from a view function is automatically converted into a668 response object for you. If the return value is a string it's converted669-into a response object with the string as response body, an ``200 OK``670-error code and a ``text/html`` mimetype. The logic that Flask applies to669+into a response object with the string as response body, a ``200 OK``670+status code and a ``text/html`` mimetype. The logic that Flask applies to671 converting return values into response objects is as follows:672 673 1. If a response object of the correct type is returned it's directly674 returned from the view.178 unmodified linesmodified:flask/testsuite/signals.py+1 added-1 removed
100 unmodified lines101 recorded = []102 def record_push(sender, **kwargs):103 recorded.append('push')104 def record_pop(sender, **kwargs):105- recorded.append('push')105+ recorded.append('pop')106 107 @app.route('/')108 def index():109 return 'Hello'44 unmodified linesmodified:.travis-devel-requirements.txt+3 added
1 git+git://github.com/mitsuhiko/werkzeug.git#egg=Werkzeug2 git+git://github.com/mitsuhiko/jinja2.git#egg=Jinja23 git+git://github.com/mitsuhiko/itsdangerous.git#egg=itsdangerous4+5+# extra dependencies6+git+git://github.com/jek/blinker.git#egg=blinkermodified:.travis-lowest-requirements.txt+3 added
1 Werkzeug==0.72 Jinja2==2.43 itsdangerous==0.214+5+# extra dependencies6+blinker==1.0modified:.travis-release-requirements.txt+2 added
1+# extra dependencies2+blinkermodified:CHANGES+8 added-1 removed
1 unmodified line2 ===============3 4 Here you can see the full list of changes between each Flask release.5 6+Version 0.10.27+--------------8+9+(bugfix release, release date to be announced)10+11+- Fixed broken `test_appcontext_signals()` test case.12+13 Version 0.10.114 --------------15 16 (bugfix release, released on June 14th 2013)4 unmodified lines21 make using that filter with angular.js easier.22 - Added support for byte strings back to the session system. This broke23 compatibility with the common case of people putting binary data for24 token verification into the session.18-- Fixed an issue were registering the same method twice for the same endpoint25+- Fixed an issue where registering the same method twice for the same endpoint26 would trigger an exception incorrectly.27 28 Version 0.1029 ------------443 unmodified linesmodified:tox.ini+1 added-1 removed
1 [tox]2 envlist = py26, py27, pypy, py333 4 [testenv]5-deps = -egit+git://github.com/mitsuhiko/werkzeug.git#egg=werkzeug5+deps = blinker6 commands = python run-tests.py []