MiniComLine

This class defines a tiny python command line reactor, which can be useful for controlling a server.

Base Classes

Methods

__execLine(self, line)

   def __execLine(self, line):

Executes a single line, handles execptions and displays the prompt again when done.

__execThread(self)

   def __execThread(self):

This method watches a queue for input lines, handling their exceptions and printing the prompt when done executing.

__init__(self)

   def __init__(self):

doPrompt(self)

   def doPrompt(self):

Displays a nice "dopy>" prompt indicating that the user can enter data.

fileno(self)

   def fileno(self):

implements dopy.dopy.Reactor.fileno()

handleError(self)

   def handleError(self):

implements dopy.dopy.Reactor.handleWrite()

handleRead(self)

   def handleRead(self):

implements dopy.dopy.Reactor.handleRead()

handleWrite(self)

   def handleWrite(self):

implements dopy.dopy.Reactor.handleWrite()

notifyOnError(self)

   def notifyOnError(self):

implements dopy.dopy.Reactor.notifyOnError()

notifyWhenReadable(self)

   def notifyWhenReadable(self):

implements dopy.dopy.Reactor.notifyWhenReadable()

notifyWhenWritable(self)

   def notifyWhenWritable(self):

implements dopy.dopy.Reactor.notifyWhenWritable()