Package flumotion :: Package extern :: Package command :: Package command :: Module manholecmd :: Class Manhole
[hide private]

Class Manhole

source code

twisted.conch.recvline.HistoricRecvLine --+
                                          |
                                         Manhole

Mediator between a fancy line source and an interactive interpreter.

This accepts lines from its transport and passes them on to a ManholeInterpreter. Control commands (^C, ^D, ^\) are also handled with something approximating their normal terminal-mode behavior. It can optionally be constructed with a dict which will be used as the local namespace for any code executed.

Nested Classes [hide private]
  interpreterClass
Interactive Interpreter with special output and Deferred support.
Instance Methods [hide private]
 
__init__(self, namespace=None) source code
 
connectionMade(self) source code
 
_setupInterpreter(self) source code
 
handle_INT(self)
Handle ^C as an interrupt keystroke by resetting the current input variables to their initial state.
source code
 
handle_EOF(self) source code
 
handle_FF(self)
Handle a 'form feed' byte - generally used to request a screen refresh/redraw.
source code
 
handle_QUIT(self) source code
 
_needsNewline(self) source code
 
addOutput(self, bytes, async=False) source code
 
lineReceived(self, line) source code
Class Variables [hide private]
  namespace = None
hash(x)