Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 593:2256f81293c1
Conversion to generated script stubs
| author | Jürgen Hermann <jhermann@users.sourceforge.net> |
|---|---|
| date | Tue, 29 Jan 2002 20:07:15 +0000 |
| parents | 326388b8604a |
| children | 3d61b5d2243e |
comparison
equal
deleted
inserted
replaced
| 592:326388b8604a | 593:2256f81293c1 |
|---|---|
| 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 18 # | 18 # |
| 19 """ HTTP Server that serves roundup. | 19 """ HTTP Server that serves roundup. |
| 20 | 20 |
| 21 $Id: roundup_server.py,v 1.1 2002-01-29 19:53:08 jhermann Exp $ | 21 $Id: roundup_server.py,v 1.2 2002-01-29 20:07:15 jhermann Exp $ |
| 22 """ | 22 """ |
| 23 | 23 |
| 24 # python version check | 24 # python version check |
| 25 from roundup import version_check | 25 from roundup import version_check |
| 26 | 26 |
| 182 pairs on the command-line. For convenience, you may edit the | 182 pairs on the command-line. For convenience, you may edit the |
| 183 ROUNDUP_INSTANCE_HOMES variable in the roundup-server file instead. | 183 ROUNDUP_INSTANCE_HOMES variable in the roundup-server file instead. |
| 184 ''')%locals() | 184 ''')%locals() |
| 185 sys.exit(0) | 185 sys.exit(0) |
| 186 | 186 |
| 187 def main(): | 187 def run(): |
| 188 hostname = '' | 188 hostname = '' |
| 189 port = 8080 | 189 port = 8080 |
| 190 try: | 190 try: |
| 191 # handle the command-line args | 191 # handle the command-line args |
| 192 try: | 192 try: |
| 242 httpd = BaseHTTPServer.HTTPServer(address, RoundupRequestHandler) | 242 httpd = BaseHTTPServer.HTTPServer(address, RoundupRequestHandler) |
| 243 print _('Roundup server started on %(address)s')%locals() | 243 print _('Roundup server started on %(address)s')%locals() |
| 244 httpd.serve_forever() | 244 httpd.serve_forever() |
| 245 | 245 |
| 246 if __name__ == '__main__': | 246 if __name__ == '__main__': |
| 247 main() | 247 run() |
| 248 | 248 |
| 249 # | 249 # |
| 250 # $Log: not supported by cvs2svn $ | 250 # $Log: not supported by cvs2svn $ |
| 251 # Revision 1.1 2002/01/29 19:53:08 jhermann | |
| 252 # Moved scripts from top-level dir to roundup.scripts subpackage | |
| 253 # | |
| 251 # Revision 1.25 2002/01/05 02:21:21 richard | 254 # Revision 1.25 2002/01/05 02:21:21 richard |
| 252 # fixes | 255 # fixes |
| 253 # | 256 # |
| 254 # Revision 1.24 2002/01/05 02:19:03 richard | 257 # Revision 1.24 2002/01/05 02:19:03 richard |
| 255 # i18n'ification | 258 # i18n'ification |
