class SFTPUserHandler(ConchUser, PrefixingLogMixin):
implements(ISFTPServer, ISession)
- def __init__(self, check_abort, client, rootnode, username):
+ def __init__(self, client, rootnode, username):
ConchUser.__init__(self)
PrefixingLogMixin.__init__(self, facility="tahoe.sftp")
- if noisy: self.log(".__init__(%r, %r, %r, %r)" %
- (check_abort, client, rootnode, username), level=NOISY)
+ if noisy: self.log(".__init__(%r, %r, %r)" % (client, rootnode, username), level=NOISY)
self.channelLookup["session"] = session.SSHSession
self.subsystemLookup["sftp"] = FileTransferServer
self.basedir = "sftp/" + basedir
self.set_up_grid(num_clients=num_clients, num_servers=num_servers)
- self.check_abort = lambda: False
self.client = self.g.clients[0]
self.username = "alice"
def _created_root(node):
self.root = node
self.root_uri = node.get_uri()
- self.handler = sftpd.SFTPUserHandler(self.check_abort, self.client, self.root, self.username)
+ self.handler = sftpd.SFTPUserHandler(self.client, self.root, self.username)
d.addCallback(_created_root)
return d