index.fcgi
changeset 126 2528cef45fe3
child 134 fbccc1648d79
equal deleted inserted replaced
125:45e56cbf9086 126:2528cef45fe3
       
     1 #!/usr/bin/python2.5
       
     2 # :set filetype=py
       
     3 
       
     4 """
       
     5     CGI mode using qmsk.web.fastcgi_main
       
     6 """
       
     7 
       
     8 def main () :
       
     9     """
       
    10         Build our wsgi.Application and run
       
    11     """
       
    12 
       
    13     try :
       
    14         from qmsk.web import wsgi, fastcgi_main
       
    15         import urls
       
    16 
       
    17         # create app
       
    18         app = wsgi.Application(urls.mapper)
       
    19 
       
    20         # run once
       
    21         fastcgi_main.run(app)
       
    22 
       
    23     except :
       
    24         # display error on stdout
       
    25         cgi_main.error()
       
    26     
       
    27 if __name__ == '__main__' :
       
    28     main()
       
    29