TurboGears 2 also exposes a WSGI controller, which is a thin and extensible wrapper to easily mount WSGI apps.
It exposes 3 methods
those 99% of the time you will only need to modify
The normal usage is to extend this class with your own, use
__init__ to build your app and store it in self.app then
delegate if you need to modify the environment, the
response or any other mangling.
For an extensive list of examples please see tgext.wsgiapps.