Skip to content
Myr

Fix typo

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

* Use the compatible way to handle the exception. You can find the source code wsgi_app in app.py, and it use the compatible way, so update it * Fix typo in config.py * Fix typo in app.py

authored by lord63 · committed by lord63 · parent 22270d0 · Browse files · 3 files+3 added−3 removed
This commit

State

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

Diff stats

3 files+3 added−3 removed

  • other:+3 added−3 removed

3 files+3 added−3 removed

modified:docs/reqcontext.rst+1 added-1 removed
67 unmodified lines
68 def wsgi_app(self, environ):69 with self.request_context(environ):70 try:71 response = self.full_dispatch_request()72 except Exception, e:72 except Exception as e:73 response = self.make_response(self.handle_exception(e))74 return response(environ, start_response)7576The method :meth:`~Flask.request_context` returns a new
147 unmodified lines
modified:flask/app.py+1 added-1 removed
419 unmodified lines
420421 #: A dictionary with lists of functions that should be called after422 #: each request. The key of the dictionary is the name of the blueprint423 #: this function is active for, ``None`` for all requests. This can for424 #: example be used to open database connections or getting hold of the424 #: example be used to close database connections or getting hold of the425 #: currently logged in user. To register a function here, use the426 #: :meth:`after_request` decorator.427 self.after_request_funcs = {}428
1558 unmodified lines
modified:flask/config.py+1 added-1 removed
220 unmodified lines
221 app.config['IMAGE_STORE_PATH'] = '/var/app/images'222 app.config['IMAGE_STORE_BASE_URL'] = 'http://img.website.com'223 image_store_config = app.config.get_namespace('IMAGE_STORE_')224225 The resulting dictionary `image_store` would look like::225 The resulting dictionary `image_store_config` would look like::226227 {228 'type': 'fs',229 'path': '/var/app/images',
29 unmodified lines