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

type Manhole

source code

                                    object --+            
                                             |            
twisted.conch.insults.insults.TerminalProtocol --+        
                                                 |        
                   twisted.conch.recvline.RecvLine --+    
                                                     |    
               twisted.conch.recvline.HistoricRecvLine --+
                                                         |
                                                        Manhole
Known Subclasses:

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)
Called after a connection has been established.
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

Inherited from twisted.conch.recvline.HistoricRecvLine: currentHistoryBuffer, handle_DOWN, handle_RETURN, handle_UP

Inherited from twisted.conch.recvline.HistoricRecvLine (private): _deliverBuffer

Inherited from twisted.conch.recvline.RecvLine: characterReceived, currentLineBuffer, drawInputLine, handle_BACKSPACE, handle_DELETE, handle_END, handle_HOME, handle_INSERT, handle_LEFT, handle_RIGHT, handle_TAB, initializeScreen, keystrokeReceived, setInsertMode, setTypeoverMode, terminalSize, unhandledControlSequence

Inherited from twisted.conch.insults.insults.TerminalProtocol: __providedBy__, __provides__, connectionLost, makeConnection

Class Variables [hide private]
  namespace = None

Inherited from twisted.conch.recvline.RecvLine: TABSTOP, height, pn, ps, width

Inherited from twisted.conch.recvline.RecvLine (private): _printableChars

Inherited from twisted.conch.insults.insults.TerminalProtocol: __implemented__

Method Details [hide private]

__init__(self, namespace=None)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

connectionMade(self)

source code 

Called after a connection has been established.

Overrides: twisted.conch.insults.insults.TerminalProtocol.connectionMade
(inherited documentation)

lineReceived(self, line)

source code 
Overrides: twisted.conch.recvline.RecvLine.lineReceived