index.fcgi
author Tero Marttila <terom@fixme.fi>
Mon, 16 Feb 2009 02:49:06 +0200
changeset 135 19ff083c2870
parent 134 fbccc1648d79
permissions -rwxr-xr-x
pimp mah error messages, it has a full link to the Trac with pre-filled title, traceback, url, hg revision fields
#!/usr/bin/python2.5
# :set filetype=py

"""
    FastCGI mode using qmsk.web.fastcgi_main
"""

from qmsk.web import fastcgi_main

# XXX: error handling for imports? Lighttp sucks hard at this
import wsgi

def main () :
    """
        Build our WSGIApplication and run
    """

    # create app
    app = wsgi.Application()

    # run once
    fastcgi_main.run(app)

if __name__ == '__main__' :
    main()