Changeset 1790 for branches


Ignore:
Timestamp:
Mar 18, 2011, 11:38:13 PM (14 years ago)
Author:
andersk
Message:
trac.fcgi: Stop relying on fcgi_frontend details that Trac 0.12 will break

In Trac 0.12, trac.web.fcgi_frontend does ‘from _fcgi import
WSGIServer’ instead of ‘import _fcgi’, and also conditionally wraps
dispatch_request in FlupMiddleware.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/deploy/trac/trac.fcgi

    r1528 r1790  
    22
    33import os, os.path, sys
    4 from trac.web import fcgi_frontend
     4from trac.web.main import dispatch_request
     5from trac.web._fcgi import WSGIServer
    56import urlparse
    67
     
    3839        env.log.exception(e)
    3940    if env.needs_upgrade():
    40         fcgi_frontend._fcgi.WSGIServer(send_upgrade_message).run()
     41        WSGIServer(send_upgrade_message).run()
    4142        sys.exit(0)
    4243    if hasattr(trac.env, 'env_cache'):
     
    6566                 referrer.path, referrer.query, referrer.fragment))
    6667
    67     return fcgi_frontend.dispatch_request(environ, start_response)
     68    return dispatch_request(environ, start_response)
    6869
    69 fcgi_frontend._fcgi.WSGIServer(my_dispatch_request).run()
     70WSGIServer(my_dispatch_request).run()
Note: See TracChangeset for help on using the changeset viewer.