[Twisted-Python] Isolating ISFTPServer in Conch's SFTP

Andy Gayton andy at thecablelounge.com
Tue Mar 23 17:25:50 EST 2004

Paul Swartz wrote:
> On Sun, 2004-03-14 at 22:00, Andy Gayton wrote:
>>It's beginning to look like most of conch/ssh/session.py would need to 
>>move into an avatar - so the avatar for a given user could be asked for 
>>a shell, or a sftp subsystem and they would get the right shell/ sftp 
>>onto a filesystem for that user .
> A day and a half of hacking at PyCon, and bam!  r10358 includes a whole
> bunch of changes, including separating the SFTP protocol implementation
> from the filesystem interface.  It now looks for an adapter from the
> avatar (the default server uses UnixConchUser) to ISFTPServer.  The old
> filesystem implementation now lives in SFTPServerForUnixConchUser, an
> adapter from UnixConchUser to ISFTPServer.  You'd just make your own
> type of avatar, and a seperate backend, and register an adapter from the
> avatar to the ISFTPServer interface.

That's brilliant!  Thanks Paul - I'll checkout the latest version and 
give it a whirl ..


More information about the Twisted-Python mailing list