index.cgi
author Tero Marttila <terom@fixme.fi>
Sun, 15 Feb 2009 23:50:24 +0200
changeset 129 67a30d680f60
parent 125 45e56cbf9086
child 133 088aa2da1340
permissions -rwxr-xr-x
Autodetect user timezone using Javascript, this makes the Preferences code a bit more complicated in terms of interaction between default/parse/is_default/build/process/etc, but it should work as intended now
#!/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()