[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - zopectl.py:1.12
Fred L. Drake, Jr.
fred at zope.com
Thu Apr 22 16:45:10 EDT 2004
Update of /cvs-repository/Zope/lib/python/Zope/Startup
In directory cvs.zope.org:/tmp/cvs-serv525
Modified Files:
zopectl.py
Log Message:
make "zopectl fg" turn on debug mode
=== Zope/lib/python/Zope/Startup/zopectl.py 1.11 => 1.12 ===
--- Zope/lib/python/Zope/Startup/zopectl.py:1.11 Tue Feb 24 00:52:52 2004
+++ Zope/lib/python/Zope/Startup/zopectl.py Thu Apr 22 16:45:09 2004
@@ -147,6 +147,14 @@
'Zope object)')
os.system(cmdline)
+ def do_foreground(self, arg):
+ self.options.program[1:1] = ["-X", "debug-mode=on"]
+ try:
+ ZDCmd.do_foreground(self, arg)
+ finally:
+ self.options.program.remove("-X")
+ self.options.program.remove("debug-mode=on")
+
def help_debug(self):
print "debug -- run the Zope debugger to inspect your database"
print " manually using a Python interactive shell"
More information about the Zope-Checkins
mailing list