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

This commit is contained in:
Armin Ronacher 2012-08-11 02:37:43 +01:00
commit 43f41201e9
8 changed files with 16 additions and 13 deletions

View file

@ -1468,7 +1468,7 @@ class Flask(_PackageBoundObject):
.. versionchanged:: 0.9
This can now also be called without a request object when the
UR adapter is created for the application context.
URL adapter is created for the application context.
"""
if request is not None:
return self.url_map.bind_to_environ(request.environ,

View file

@ -305,7 +305,9 @@ def url_for(endpoint, **values):
:param endpoint: the endpoint of the URL (name of the function)
:param values: the variable arguments of the URL rule
:param _external: if set to `True`, an absolute URL is generated.
:param _external: if set to `True`, an absolute URL is generated. Server
address can be changed via `SERVER_NAME` configuration variable which
defaults to `localhost`.
:param _anchor: if provided this is added as anchor to the URL.
:param _method: if provided this explicitly specifies an HTTP method.
"""