comparison roundup/scripts/roundup_server.py @ 3020:e4bac783c617 maint-0.8

force the [trackers] section in config... ...even if no trackers specified on the command line
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Wed, 22 Dec 2004 06:38:08 +0000
parents 996e2bab8d8a
children e0aab0d08265
comparison
equal deleted inserted replaced
3013:80ecc86dc45d 3020:e4bac783c617
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.74 2004-11-22 07:11:30 a1s Exp $ 20 $Id: roundup_server.py,v 1.74.2.1 2004-12-22 06:38:08 a1s Exp $
21 """ 21 """
22 __docformat__ = 'restructuredtext' 22 __docformat__ = 'restructuredtext'
23 23
24 import errno, cgi, getopt, os, socket, sys, traceback, urllib 24 import errno, cgi, getopt, os, socket, sys, traceback, urllib
25 import ConfigParser, BaseHTTPServer, SocketServer, StringIO 25 import ConfigParser, BaseHTTPServer, SocketServer, StringIO
357 "multiprocess": "t:", 357 "multiprocess": "t:",
358 } 358 }
359 359
360 def __init__(self, config_file=None): 360 def __init__(self, config_file=None):
361 configuration.Config.__init__(self, config_file, self.SETTINGS) 361 configuration.Config.__init__(self, config_file, self.SETTINGS)
362 self.sections.append("trackers")
362 363
363 def _adjust_options(self, config): 364 def _adjust_options(self, config):
364 """Add options for tracker homes""" 365 """Add options for tracker homes"""
365 # return early if there are no tracker definitions. 366 # return early if there are no tracker definitions.
366 # trackers must be specified on the command line. 367 # trackers must be specified on the command line.

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