diff roundup/scripts/roundup_server.py @ 2772:52460ff89e10

fix: tracker definitions from the command line... ...were FilePathOptions, not TrackerHomeOptions; remove all descriptions from TrackerHomeOption format
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 17 Oct 2004 18:14:22 +0000
parents d385f6c1d4ed
children 6fb4b692c133
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Sun Oct 17 17:54:48 2004 +0000
+++ b/roundup/scripts/roundup_server.py	Sun Oct 17 18:14:22 2004 +0000
@@ -17,7 +17,7 @@
 
 """Command-line script that runs a server over roundup.cgi.client.
 
-$Id: roundup_server.py,v 1.63 2004-10-17 17:54:48 a1s Exp $
+$Id: roundup_server.py,v 1.64 2004-10-17 18:14:22 a1s Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -462,10 +462,13 @@
     os.setuid(uid)
 
 class TrackerHomeOption(configuration.FilePathOption):
-    # Tracker homes do not need description strings
-    # attached to FilePathOption.  Description appears once
-    # before the trackers section.
-    class_description = ""
+
+    # Tracker homes do not need any description strings
+    def format(self):
+        return "%(name)s = %(value)s\n" % {
+                "name": self.setting,
+                "value": self.value2str(self._value),
+            }
 
 class ServerConfig(configuration.Config):
 
@@ -570,8 +573,7 @@
                 name, home = arg.split('=')
             except ValueError:
                 raise ValueError, _("Instances must be name=home")
-            config.add_option(
-                configuration.FilePathOption(config, "trackers", name))
+            config.add_option(TrackerHomeOption(config, "trackers", name))
             config["TRACKERS_" + name.upper()] = home
 
     # handle remaining options

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