[Zodb-checkins] CVS: Zope/lib/python/zdaemon - schema.xml:1.12 zdctl.py:1.36

Chris McDonough chrism@zope.com
Sat, 25 Jan 2003 22:36:42 -0500


Update of /cvs-repository/Zope/lib/python/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv16669

Modified Files:
	schema.xml zdctl.py 
Log Message:
Make the prompt a config-specifiable parameter.


=== Zope/lib/python/zdaemon/schema.xml 1.11 => 1.12 ===
--- Zope/lib/python/zdaemon/schema.xml:1.11	Fri Jan 24 20:12:42 2003
+++ Zope/lib/python/zdaemon/schema.xml	Sat Jan 25 22:36:38 2003
@@ -231,6 +231,13 @@
       </description>
     </key>
 
+    <key name="prompt" datatype="string"
+         required="no" default="zdctl>">
+       <description>
+         The prompt shown by the controller program.
+       </description>
+    </key>
+
   </sectiontype>
 
   <section name="*" type="runner" attribute="runner" required="yes" />


=== Zope/lib/python/zdaemon/zdctl.py 1.35 => 1.36 ===
--- Zope/lib/python/zdaemon/zdctl.py:1.35	Sat Jan 25 08:43:41 2003
+++ Zope/lib/python/zdaemon/zdctl.py	Sat Jan 25 22:36:38 2003
@@ -86,6 +86,7 @@
         self.add("logfile", "runner.logfile", "l:", "logfile=")
         self.add("python", "runner.python")
         self.add("zdrun", "runner.zdrun")
+        self.add("prompt", "runner.prompt")
 
     def realize(self, *args, **kwds):
         RunnerOptions.realize(self, *args, **kwds)
@@ -113,10 +114,9 @@
 
 class ZDCmd(cmd.Cmd):
 
-    prompt = "zdctl> "
-
     def __init__(self, options):
         self.options = options
+        self.prompt = self.options.prompt + ' '
         cmd.Cmd.__init__(self)
         self.get_status()
         if self.zd_status: