[Zope-Checkins] CVS: Zope/lib/python/Zope/Startup - ZctlLib.py:1.1.2.4

Guido van Rossum guido@python.org
Tue, 14 Jan 2003 13:00:19 -0500


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

Modified Files:
      Tag: chrism-install-branch
	ZctlLib.py 
Log Message:
I don't know why class _ZopeCtmCmd doesn't call the base class
__init__() or why it contains what seems to be an identical copy of
the base class's complete() method, but it appears to depend on a bug
in cmd.Cmd: cmdqueue was a class variable while it clearly needs to be
an instance variable.  Rather than calling the base class __init__, I
simply initialize cmdqueue in __init__ here.

There's lots more bogosities here, is anybody interested in a thorough
review?


=== Zope/lib/python/Zope/Startup/ZctlLib.py 1.1.2.3 => 1.1.2.4 ===
--- Zope/lib/python/Zope/Startup/ZctlLib.py:1.1.2.3	Mon Jan 13 14:28:40 2003
+++ Zope/lib/python/Zope/Startup/ZctlLib.py	Tue Jan 14 13:00:16 2003
@@ -539,6 +539,7 @@
         Interactive command processor.
     """
     def __init__( self, completekey='tab', prompt='zopectl> ', verbosity=1 ):
+        self.cmdqueue = []
         if completekey and readline:
             readline.set_completer(self.complete)
             readline.parse_and_bind(completekey + ': complete')