Skip to content
Myr

Merge branch 'master' into module-support

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 36f659b, 9248a7b · Browse files · 2 files+4 added−4 removed
This commit

State

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

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:docs/patterns/index.rst+3 added
8 unmodified lines
9changes are they will open a database connection at the beginning of the10request and get the information of the currently logged in user. At the11end of the request, the database connection is closed again.1213There are more user contributed snippets and patterns in the `Flask14Snippet Archives <http://flask.pocoo.org/snippets/>`_.1516.. toctree::17 :maxdepth: 21819 packages
9 unmodified lines
modified:flask.py+1 added-4 removed
929 unmodified lines
930931 :param rv: the return value from the view function932 """933 if rv is None:934 from warnings import warn935 warn(Warning('View function did not return a response'),936 stacklevel=2)937 return u''934 raise ValueError('View function did not return a response')935 if isinstance(rv, self.response_class):936 return rv937 if isinstance(rv, basestring):938 return self.response_class(rv)
102 unmodified lines