Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 2773:6fb4b692c133
oops. forgot to reenable ConfigurationError handling, disabled for debugging.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 17 Oct 2004 18:22:32 +0000 |
| parents | 52460ff89e10 |
| children | 22c381f3f448 |
comparison
equal
deleted
inserted
replaced
| 2772:52460ff89e10 | 2773:6fb4b692c133 |
|---|---|
| 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 16 # | 16 # |
| 17 | 17 |
| 18 """Command-line script that runs a server over roundup.cgi.client. | 18 """Command-line script that runs a server over roundup.cgi.client. |
| 19 | 19 |
| 20 $Id: roundup_server.py,v 1.64 2004-10-17 18:14:22 a1s Exp $ | 20 $Id: roundup_server.py,v 1.65 2004-10-17 18:22:32 a1s Exp $ |
| 21 """ | 21 """ |
| 22 __docformat__ = 'restructuredtext' | 22 __docformat__ = 'restructuredtext' |
| 23 | 23 |
| 24 # python version check | 24 # python version check |
| 25 from roundup import configuration, version_check | 25 from roundup import configuration, version_check |
| 551 try: | 551 try: |
| 552 (optlist, args) = config.getopt(sys.argv[1:], | 552 (optlist, args) = config.getopt(sys.argv[1:], |
| 553 options, ("help", "version", "save-config",), | 553 options, ("help", "version", "save-config",), |
| 554 host="n:", port="p:", group="g:", user="u:", | 554 host="n:", port="p:", group="g:", user="u:", |
| 555 logfile="l:", pidfile="d:", log_hostnames="N") | 555 logfile="l:", pidfile="d:", log_hostnames="N") |
| 556 except (getopt.GetoptError), e: #, configuration.ConfigurationError), e: | 556 except (getopt.GetoptError, configuration.ConfigurationError), e: |
| 557 usage(str(e)) | 557 usage(str(e)) |
| 558 return | 558 return |
| 559 | 559 |
| 560 # if running in windows service mode, don't do any other stuff | 560 # if running in windows service mode, don't do any other stuff |
| 561 if ("-c", "") in optlist: | 561 if ("-c", "") in optlist: |
