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

Class CmdManhole

source code

                                    object --+                
                                             |                
twisted.conch.insults.insults.TerminalProtocol --+            
                                                 |            
                   twisted.conch.recvline.RecvLine --+        
                                                     |        
               twisted.conch.recvline.HistoricRecvLine --+    
                                                         |    
                                                   Manhole --+
                                                             |
                                                            CmdManhole

Nested Classes [hide private]
  interpreterClass
Interactive Interpreter with special output and Deferred support.
Instance Methods [hide private]
 
__init__(self, namespace=None, connectionLostDeferred=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
connectionLost(self, reason)
When the connection is lost, there is nothing more to do.
source code

Inherited from Manhole: addOutput, connectionMade, handle_EOF, handle_FF, handle_INT, handle_QUIT, lineReceived

Inherited from Manhole (private): _needsNewline, _setupInterpreter

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__, makeConnection

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from Manhole: namespace

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__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, namespace=None, connectionLostDeferred=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • connectionLostDeferred - a deferred that will be fired when the connection is lost, with the reason.
Overrides: object.__init__

connectionLost(self, reason)

source code 

When the connection is lost, there is nothing more to do. Stop the reactor so that the process can exit.

Override me for custom behaviour.

Overrides: twisted.conch.insults.insults.TerminalProtocol.connectionLost