[Twisted-Python] [Conch] anyone using twisted.conch.ssh.session.SSHSession directly?
I'm working on tests for t.c.s.session.SSHSession, and it's difficult because of the terrible API SSHSession currently has. I've tried a rewrite in branches/session-2710, but I wanted to know if anyone was actually using that class directly? The typical use case is writing an Avatar->ISession adapter, and if you're doing it that way nothing should change for you even with this update. In short, let me know if you're using twisted.conch.ssh.session.SSHSession directly and I need to keep it backwards compatible. Thanks! -p -- Paul Swartz paulswartz at gmail dot com http://z3p.livejournal.com/ AIM: z3penguin
I'm working on tests for t.c.s.session.SSHSession, and it's difficult because of the terrible API SSHSession currently has. I've tried a rewrite in branches/session-2710, but I wanted to know if anyone was actually using that class directly? The typical use case is writing an Avatar->ISession adapter, and if you're doing it that way nothing should change for you even with this update.
Rather than removing it, you could e.g. deprecate the old class and then write a new one (using test-driven development) to ensure a decent API and good test coverage.
On 07:25 pm, itamar@itamarst.org wrote:
I'm working on tests for t.c.s.session.SSHSession, and it's difficult because of the terrible API SSHSession currently has. I've tried a rewrite in branches/session-2710, but I wanted to know if anyone was actually using that class directly? The typical use case is writing an Avatar->ISession adapter, and if you're doing it that way nothing should change for you even with this update.
Rather than removing it, you could e.g. deprecate the old class and then write a new one (using test-driven development) to ensure a decent API and good test coverage.
I tried a while ago to document some parts of the unspoken idioms around compatibility: http://twistedmatrix.com/trac/wiki/CompatibilityPolicy It's still not done, but hey, as long as we're talking about it, Paul, have a look at the number of entries Conch has in that list near the bottom. ;-)
On 6/29/07, glyph@divmod.com <glyph@divmod.com> wrote:
On 07:25 pm, itamar@itamarst.org wrote:
I'm working on tests for t.c.s.session.SSHSession, and it's difficult because of the terrible API SSHSession currently has. I've tried a rewrite in branches/session-2710, but I wanted to know if anyone was actually using that class directly? The typical use case is writing an Avatar->ISession adapter, and if you're doing it that way nothing should change for you even with this update.
Rather than removing it, you could e.g. deprecate the old class and then write a new one (using test-driven development) to ensure a decent API and good test coverage.
I tried a while ago to document some parts of the unspoken idioms around compatibility:
http://twistedmatrix.com/trac/wiki/CompatibilityPolicy
It's still not done, but hey, as long as we're talking about it, Paul, have a look at the number of entries Conch has in that list near the bottom. ;-)
Oh, I know. My goal is to have the SoC branches take over testing for Conch, so I can just scrub those old deprecated ones. -p -- Paul Swartz paulswartz at gmail dot com http://z3p.livejournal.com/ AIM: z3penguin
participants (3)
-
glyph@divmod.com
-
Itamar Shtull-Trauring
-
Paul Swartz