comparison roundup/scripts/roundup_server.py @ 2675:52e679309217

unset svc_args is empty list, not None
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 21 Sep 2004 08:16:50 +0000
parents 18a23afb1f89
children ea18be87d68d
comparison
equal deleted inserted replaced
2674:18a23afb1f89 2675:52e679309217
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.60 2004-09-21 08:01:15 a1s Exp $ 20 $Id: roundup_server.py,v 1.61 2004-09-21 08:16:50 a1s Exp $
21 """ 21 """
22 __docformat__ = 'restructuredtext' 22 __docformat__ = 'restructuredtext'
23 23
24 # python version check 24 # python version check
25 from roundup import version_check 25 from roundup import version_check
497 elif opt == '-h': usage() 497 elif opt == '-h': usage()
498 elif opt == '-N': log_ip = 0 498 elif opt == '-N': log_ip = 0
499 elif opt == '-c': svc_args = [opt] + args; args = None 499 elif opt == '-c': svc_args = [opt] + args; args = None
500 elif opt == '-C': config = arg 500 elif opt == '-C': config = arg
501 501
502 if svc_args is not None and len(optlist) > 1: 502 if svc_args and len(optlist) > 1:
503 raise ValueError, _("windows service option must be the only one") 503 raise ValueError, _("windows service option must be the only one")
504 504
505 if pidfile and not logfile: 505 if pidfile and not logfile:
506 raise ValueError, _("logfile *must* be specified if pidfile is") 506 raise ValueError, _("logfile *must* be specified if pidfile is")
507 507

Roundup Issue Tracker: http://roundup-tracker.org/