Added flask.copy_current_request_context which simplies working with greenlets

This commit is contained in:
Armin Ronacher 2013-05-14 11:00:04 +01:00
parent 0faed95385
commit 097353695e
7 changed files with 272 additions and 114 deletions

View file

@ -1821,3 +1821,9 @@ class Flask(_PackageBoundObject):
def __call__(self, environ, start_response):
"""Shortcut for :attr:`wsgi_app`."""
return self.wsgi_app(environ, start_response)
def __repr__(self):
return '<%s %r>' % (
self.__class__.__name__,
self.name,
)