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 #1951 (closed enhancement: wontfix)

Opened 9 years ago

Last modified 9 years ago

Backport use_wsgi_app from 2.0

Reported by: kskuhlman Owned by: kskuhlman
Priority: normal Milestone: 1.5
Component: TurboGears Version: 1.5 HEAD
Severity: normal Keywords:
Cc:

Description

Backport use_wsgi_app() from 2.0. use_wsgi_app provides a nice shorthand for dispatching to a wsgi app in code, rather than configuration. Good ideas are meant to be stolen.

Attachments

use_wsgi_app.diff Download (7.9 KB) - added by kskuhlman 9 years ago.

Change History

comment:1 Changed 9 years ago by faide

  • Milestone changed from 1.6 to 1.5

Changed 9 years ago by kskuhlman

comment:2 Changed 9 years ago by kskuhlman

  • Status changed from new to assigned
  • Version set to 1.1 HEAD
  • Type changed from defect to enhancement
  • Milestone changed from 1.5 to 1.1 beta 2

I think we should expose cherrypy.lib.cptools.WSGIApp in 1.1 and cherrypy.tools.wsgiapp.handler as turbogears.use_wsgi_app,

While this wouldn't completely match the API of TG 2.0's use_wsgi_app, these 1-liners achieve the same basic goal & provide a consistent mechanism for mounting WSGI applications within the 1.x series.

comment:3 Changed 9 years ago by faide

Sure. This introduces new functionnality to TG1 users and would need some documentation. Feel free to commit this and document a bit.

comment:4 Changed 9 years ago by faide

  • Milestone changed from 1.1 beta 2 to 1.1

comment:5 Changed 9 years ago by kskuhlman

  • Version changed from 1.1 HEAD to 1.5 HEAD
  • Milestone changed from 1.1 to 1.5

This is bigger than I originally thought, so moving milestone back to 1.5. Also, I may close this ticket as wontfix pending the outcome of the  discussion on the list.

comment:6 Changed 9 years ago by kskuhlman

  • Status changed from assigned to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.