index.cgi
author Tero Marttila <terom@fixme.fi>
Mon, 16 Feb 2009 00:52:20 +0200
changeset 131 67f5d2fdca1d
parent 125 45e56cbf9086
child 133 088aa2da1340
permissions -rwxr-xr-x
rename config.PREF_TIMEZONE_FALLBACK, add Cookie expire/path info, and move the hg version stuff into the template/helpers
#!/usr/bin/python2.5

"""
    CGI mode using qmsk.web.cgi
"""

def main () :
    """
        Build our wsgi.Application and run
    """

    try :
        from qmsk.web import wsgi, cgi_main
        import urls

        # create app
        app = wsgi.Application(urls.mapper)
        
        # run once
        cgi_main.run(app)

    except :
        # display error on stdout
        cgi_main.error()
    
if __name__ == '__main__' :
    main()