~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

Got the bzrdir api straightened out, plenty of refactoring to use it pending, but the api is up and running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
924
924
        _ssh_vendor = self._original_vendor
925
925
 
926
926
 
 
927
class SFTPFullAbsoluteServer(SFTPServer):
 
928
    """A test server for sftp transports, using absolute urls and ssh."""
 
929
 
 
930
    def get_url(self):
 
931
        """See bzrlib.transport.Server.get_url."""
 
932
        return self._get_sftp_url(urlescape(self._homedir[1:]))
 
933
 
 
934
 
927
935
class SFTPServerWithoutSSH(SFTPServer):
928
 
    """
929
 
    Common code for an SFTP server over a clear TCP loopback socket,
930
 
    instead of over an SSH secured socket.
931
 
    """
 
936
    """An SFTP server that uses a simple TCP socket pair rather than SSH."""
932
937
 
933
938
    def __init__(self):
934
939
        super(SFTPServerWithoutSSH, self).__init__()