# HG changeset patch # User Tero Marttila # Date 1234632205 -7200 # Node ID 2528cef45fe35632c554fd9a3a49f14b468ba7de # Parent 45e56cbf9086ea4615ec3ac12ac75de33708e1bd simple FastCGI support diff -r 45e56cbf9086 -r 2528cef45fe3 index.fcgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.fcgi Sat Feb 14 19:23:25 2009 +0200 @@ -0,0 +1,29 @@ +#!/usr/bin/python2.5 +# :set filetype=py + +""" + CGI mode using qmsk.web.fastcgi_main +""" + +def main () : + """ + Build our wsgi.Application and run + """ + + try : + from qmsk.web import wsgi, fastcgi_main + import urls + + # create app + app = wsgi.Application(urls.mapper) + + # run once + fastcgi_main.run(app) + + except : + # display error on stdout + cgi_main.error() + +if __name__ == '__main__' : + main() +