equal
deleted
inserted
replaced
1 #!/usr/bin/python2.5 |
1 #!/usr/bin/python2.5 |
2 # :set filetype=py encoding=utf8 |
2 # :set filetype=py encoding=utf8 |
3 |
3 |
4 """ |
4 """ |
5 CGI implementation |
5 Sample CGI implementation |
6 """ |
6 """ |
7 |
7 |
8 # CGI handler for WSGI |
8 # CGI handler for WSGI |
9 import wsgiref.handlers |
9 import wsgiref.handlers |
10 |
10 |
25 """ |
25 """ |
26 Run in CGI mode |
26 Run in CGI mode |
27 """ |
27 """ |
28 |
28 |
29 try : |
29 try : |
30 from lib import wsgi, site |
30 from qmsk.web import wsgi, site |
31 |
31 |
32 # create handler |
32 # create handler |
33 cgi_handler = wsgiref.handlers.CGIHandler() |
33 cgi_handler = wsgiref.handlers.CGIHandler() |
34 |
34 |
35 # create app |
35 # create app |