bin/qmsk-irclogs.fcgi
changeset 143 154d2d8ae9c0
parent 140 6db2527b67cf
child 147 95b0a3fdd207
equal deleted inserted replaced
142:e163794ccf54 143:154d2d8ae9c0
       
     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 from qmsk.irclogs 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