[Zope-Checkins] CVS: Zope/lib/python/zdaemon - zdctl.py:1.51

Fred L. Drake, Jr. fred at zope.com
Thu Apr 22 14:41:44 EDT 2004


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

Modified Files:
	zdctl.py 
Log Message:
- EVENT_LOG_FILE and friends are no longer used
- make do_fg() and help_fg() call their *_foreground() counterparts so
  subclasses need only implement the *_foreground() names


=== Zope/lib/python/zdaemon/zdctl.py 1.50 => 1.51 ===
--- Zope/lib/python/zdaemon/zdctl.py:1.50	Tue Mar 23 10:51:55 2004
+++ Zope/lib/python/zdaemon/zdctl.py	Thu Apr 22 14:41:43 2004
@@ -467,22 +467,21 @@
             print "To run the program in the foreground, please stop it first."
             return
         program = " ".join(self.options.program)
-        program = "\n".join (["export EVENT_LOG_FILE",
-                              "EVENT_LOG_FILE=",
-                              program])
         print program
         try:
             os.system(program)
         except KeyboardInterrupt:
             print
 
-    do_fg = do_foreground
+    def do_fg(self, arg):
+        self.do_foreground(arg)
 
     def help_foreground(self):
         print "foreground -- Run the program in the forground."
         print "fg -- an alias for foreground."
 
-    help_fg = help_foreground
+    def help_fg(self):
+        self.help_foreground()
 
     def do_quit(self, arg):
         self.get_status()




More information about the Zope-Checkins mailing list