Local App

Warning

This module is deprecated. The webapp2.WSGIApplication class is now thread-safe by default when webapp2_extras.local is available.

class webapp2_extras.local_app.WSGIApplication(routes=None, debug=False, config=None)

A WSGI-compliant application.

set_globals(app=None, request=None)

Registers the global variables for app and request.

If webapp2_extras.local is available the app and request class attributes are assigned to a proxy object that returns them using thread-local, making the application thread-safe. This can also be used in environments that don’t support threading.

If webapp2_extras.local is not available app and request will be assigned directly as class attributes. This should only be used in non-threaded environments (e.g., App Engine Python 2.5).

Parameters:

Previous topic

Local

Next topic

Mako

This Page