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

Paul Swartz z3p at twistedmatrix.com
Tue Mar 23 13:49:04 EST 2004

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.

      Paul Swartz
(o_   z3p at twistedmatrix dot com
//\   http://www.twistedmatrix.com/users/z3p.twistd/
V_/_  AIM: Z3Penguin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040323/4a2d0c9b/attachment.pgp 

More information about the Twisted-Python mailing list