Skip to content

Commit 43f4120

Browse files
committed
Merge branch 'master' of github.com:mitsuhiko/flask
2 parents b879193 + 9a0f651 commit 43f4120

File tree

8 files changed

+16
-13
lines changed

8 files changed

+16
-13
lines changed

CHANGES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Release date to be decided.
1111
Version 0.9
1212
-----------
1313

14-
Released on July 1st 2012, codename Camapri.
14+
Released on July 1st 2012, codename Campari.
1515

1616
- The :func:`flask.Request.on_json_loading_failed` now returns a JSON formatted
1717
response by default.
@@ -82,7 +82,7 @@ Released on July 1st 2012, codename Camapri.
8282
Version 0.8.1
8383
-------------
8484

85-
Bugfix release, released on July 1th 2012
85+
Bugfix release, released on July 1st 2012
8686

8787
- Fixed an issue with the undocumented `flask.session` module to not
8888
work properly on Python 2.5. It should not be used but did cause

docs/appcontext.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ you can have more than one application in the same Python process.
4444

4545
So how does the code find the “right” application? In the past we
4646
recommended passing applications around explicitly, but that caused issues
47-
with libraries that were not designed with that in mind for libraries for
48-
which it was too inconvenient to make this work.
47+
with libraries that were not designed with that in mind.
4948

5049
A common workaround for that problem was to use the
5150
:data:`~flask.current_app` proxy later on, which was bound to the current

docs/design.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ since decorators could be fired in undefined order when the application is
9090
split into multiple modules.
9191

9292
Another design decision with the Werkzeug routing system is that routes
93-
in Werkzeug try to ensure that there is that URLs are unique. Werkzeug
94-
will go quite far with that in that it will automatically redirect to a
95-
canonical URL if a route is ambiguous.
93+
in Werkzeug try to ensure that URLs are unique. Werkzeug will go quite far
94+
with that in that it will automatically redirect to a canonical URL if a route
95+
is ambiguous.
9696

9797

9898
One Template Engine

docs/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ package it's actually inside your package:
377377
/hello.html
378378

379379
For templates you can use the full power of Jinja2 templates. Head over
380-
to the the official `Jinja2 Template Documentation
380+
to the official `Jinja2 Template Documentation
381381
<http://jinja.pocoo.org/2/documentation/templates>`_ for more information.
382382

383383
Here is an example template:

docs/tutorial/dbinit.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ for you to the application.
2323
If you want to do that, you first have to import the
2424
:func:`contextlib.closing` function from the contextlib package. If you
2525
want to use Python 2.5 it's also necessary to enable the `with` statement
26-
first (`__future__` imports must be the very first import)::
26+
first (`__future__` imports must be the very first import). Accordingly,
27+
add the following lines to your existing imports in `flaskr.py`::
2728

2829
from __future__ import with_statement
2930
from contextlib import closing
3031

3132
Next we can create a function called `init_db` that initializes the
3233
database. For this we can use the `connect_db` function we defined
33-
earlier. Just add that function below the `connect_db` function::
34+
earlier. Just add that function below the `connect_db` function in
35+
`flask.py`::
3436

3537
def init_db():
3638
with closing(connect_db()) as db:

docs/tutorial/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Introducing Flaskr
44
==================
55

6-
We will call our blogging application flaskr here, feel free to chose a
6+
We will call our blogging application flaskr here, feel free to choose a
77
less web-2.0-ish name ;) Basically we want it to do the following things:
88

99
1. let the user sign in and out with credentials specified in the

flask/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def create_url_adapter(self, request):
14681468
14691469
.. versionchanged:: 0.9
14701470
This can now also be called without a request object when the
1471-
UR adapter is created for the application context.
1471+
URL adapter is created for the application context.
14721472
"""
14731473
if request is not None:
14741474
return self.url_map.bind_to_environ(request.environ,

flask/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ def external_url_handler(error, endpoint, **values):
305305
306306
:param endpoint: the endpoint of the URL (name of the function)
307307
:param values: the variable arguments of the URL rule
308-
:param _external: if set to `True`, an absolute URL is generated.
308+
:param _external: if set to `True`, an absolute URL is generated. Server
309+
address can be changed via `SERVER_NAME` configuration variable which
310+
defaults to `localhost`.
309311
:param _anchor: if provided this is added as anchor to the URL.
310312
:param _method: if provided this explicitly specifies an HTTP method.
311313
"""

0 commit comments

Comments
 (0)