|
17 | 17 |
|
18 | 18 | """Command-line script that runs a server over roundup.cgi.client. |
19 | 19 |
|
20 | | -$Id: roundup_server.py,v 1.63 2004-10-17 17:54:48 a1s Exp $ |
| 20 | +$Id: roundup_server.py,v 1.64 2004-10-17 18:14:22 a1s Exp $ |
21 | 21 | """ |
22 | 22 | __docformat__ = 'restructuredtext' |
23 | 23 |
|
@@ -462,10 +462,13 @@ def setuid(user): |
462 | 462 | os.setuid(uid) |
463 | 463 |
|
464 | 464 | class TrackerHomeOption(configuration.FilePathOption): |
465 | | - # Tracker homes do not need description strings |
466 | | - # attached to FilePathOption. Description appears once |
467 | | - # before the trackers section. |
468 | | - class_description = "" |
| 465 | + |
| 466 | + # Tracker homes do not need any description strings |
| 467 | + def format(self): |
| 468 | + return "%(name)s = %(value)s\n" % { |
| 469 | + "name": self.setting, |
| 470 | + "value": self.value2str(self._value), |
| 471 | + } |
469 | 472 |
|
470 | 473 | class ServerConfig(configuration.Config): |
471 | 474 |
|
@@ -570,8 +573,7 @@ def run(port=undefined, success_message=None): |
570 | 573 | name, home = arg.split('=') |
571 | 574 | except ValueError: |
572 | 575 | raise ValueError, _("Instances must be name=home") |
573 | | - config.add_option( |
574 | | - configuration.FilePathOption(config, "trackers", name)) |
| 576 | + config.add_option(TrackerHomeOption(config, "trackers", name)) |
575 | 577 | config["TRACKERS_" + name.upper()] = home |
576 | 578 |
|
577 | 579 | # handle remaining options |
|
0 commit comments