twisted.conch.manhole_ssh.TerminalSessionTransport requires `session` and `write` attributes on an object only documented as being a ProcessProtocol instance

[email protected]
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from exarkun <[email protected]>:

`TerminalSessionTransport.__init__` grabs `session` and `write` from the `proto` argument passed to it.  This works for the uses it is currently put to because conch internally invokes `openShell` with an `SSHSessionProcessProtocol` which extends `ProcessProtocol` with these attributes.  This is undocumented, though, which complicates testing.

Either the `openShell` documentation should be updated to document the actual interface provided by the object passed to it, or `TerminalSessionTransport` should get the objects it needs by some other means (if one exists - or one should be added if necessary).


----------
Type     : defect
Component: conch
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/3864
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.