Index: tg/configuration.py =================================================================== --- tg/configuration.py (revision 5791) +++ tg/configuration.py (working copy) @@ -442,7 +442,7 @@ load_environment(global_conf, app_conf) app = TGApp() if wrap_app: - wrap_app(app) + app = wrap_app(app) app = self.add_core_middleware(app) if self.use_toscawidgets: