index.fcgi
changeset 140 6db2527b67cf
parent 139 9c7769850195
child 141 65c98c9e1716
equal deleted inserted replaced
139:9c7769850195 140:6db2527b67cf
     1 #!/usr/bin/python2.5
       
     2 # :set filetype=py
       
     3 
       
     4 """
       
     5     FastCGI mode using qmsk.web.fastcgi_main
       
     6 """
       
     7 
       
     8 from qmsk.web import fastcgi_main
       
     9 
       
    10 # XXX: error handling for imports? Lighttp sucks hard at this
       
    11 import wsgi
       
    12 
       
    13 def main () :
       
    14     """
       
    15         Build our WSGIApplication and run
       
    16     """
       
    17 
       
    18     # create app
       
    19     app = wsgi.Application()
       
    20 
       
    21     # run once
       
    22     fastcgi_main.run(app)
       
    23 
       
    24 if __name__ == '__main__' :
       
    25     main()
       
    26