Mercurial > p > roundup > code
comparison server.py @ 5:72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Thu, 19 Jul 2001 05:52:22 +0000 |
| parents | 5e92642cd1f8 |
| children | 3b0a72f54613 |
comparison
equal
deleted
inserted
replaced
| 4:b10f8834cce4 | 5:72a0ba086b3e |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 """ HTTP Server that serves roundup. | 2 """ HTTP Server that serves roundup. |
| 3 | 3 |
| 4 Stolen from CGIHTTPServer | 4 Stolen from CGIHTTPServer |
| 5 | |
| 6 $Id: server.py,v 1.2 2001-07-19 05:52:22 anthonybaxter Exp $ | |
| 5 | 7 |
| 6 """ | 8 """ |
| 7 import sys | 9 import sys |
| 8 if int(sys.version[0]) < 2: | 10 if int(sys.version[0]) < 2: |
| 9 print "Content-Type: text/plain\n" | 11 print "Content-Type: text/plain\n" |
| 146 address = ('dirk.adroit', 9080) | 148 address = ('dirk.adroit', 9080) |
| 147 httpd = BaseHTTPServer.HTTPServer(address, RoundupRequestHandler) | 149 httpd = BaseHTTPServer.HTTPServer(address, RoundupRequestHandler) |
| 148 print 'Roundup server started on', address | 150 print 'Roundup server started on', address |
| 149 httpd.serve_forever() | 151 httpd.serve_forever() |
| 150 | 152 |
| 153 # | |
| 154 # $Log: not supported by cvs2svn $ | |
| 155 # | |
| 156 |
