terom@126: #!/usr/bin/python2.5 terom@126: # :set filetype=py terom@126: terom@126: """ terom@126: CGI mode using qmsk.web.fastcgi_main terom@126: """ terom@126: terom@126: def main () : terom@126: """ terom@126: Build our wsgi.Application and run terom@126: """ terom@126: terom@126: try : terom@126: from qmsk.web import wsgi, fastcgi_main terom@126: import urls terom@126: terom@126: # create app terom@126: app = wsgi.Application(urls.mapper) terom@126: terom@126: # run once terom@126: fastcgi_main.run(app) terom@126: terom@126: except : terom@126: # display error on stdout terom@126: cgi_main.error() terom@126: terom@126: if __name__ == '__main__' : terom@126: main() terom@126: