--- a/index.fcgi Mon Feb 16 01:03:23 2009 +0200
+++ b/index.fcgi Mon Feb 16 02:09:14 2009 +0200
@@ -2,28 +2,25 @@
# :set filetype=py
"""
- CGI mode using qmsk.web.fastcgi_main
+ FastCGI mode using qmsk.web.fastcgi_main
"""
+from qmsk.web import fastcgi_main
+
+# XXX: error handling for imports? Lighttp sucks hard at this
+import wsgi
+
def main () :
"""
- Build our wsgi.Application and run
+ Build our WSGIApplication and run
"""
- try :
- from qmsk.web import wsgi, fastcgi_main
- import urls
-
- # create app
- app = wsgi.Application(urls.mapper)
+ # create app
+ app = wsgi.Application()
- # run once
- fastcgi_main.run(app)
+ # run once
+ fastcgi_main.run(app)
- except :
- # display error on stdout
- cgi_main.error()
-
if __name__ == '__main__' :
main()