Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2051 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

[PATCH] Make the wrap_app argument to make_base_app actually work.

Reported by: lmacken Owned by: faide
Priority: high Milestone: 2.0
Component: TurboGears Version: 1.0.7
Severity: normal Keywords:
Cc: mramm

Description

Currently, the wrap_app argument to the make_base_app method wraps the application, but does not insert it into the middleware stack. The attached patch resolves this issue.

--- 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:

Attachments

tg2-wrap-app.patch Download (470 bytes) - added by lmacken 11 years ago.
tg2-wrap-app.patch

Change History

Changed 11 years ago by lmacken

tg2-wrap-app.patch

comment:1 Changed 11 years ago by lmacken

  • Cc mramm added

I would apply this myself, but seem to have forgotten my TG svn password. How can I go about resetting it?

comment:2 Changed 11 years ago by Chris Arndt

Contact sysadmin@turbogears.org.

comment:3 Changed 11 years ago by lmacken

  • Status changed from new to closed
  • Resolution set to fixed

Committed in revision 5837.

Note: See TracTickets for help on using tickets.