From c489a05235cce26a4e058b5b2db837a855a2a79f Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 5 Nov 2008 14:07:33 -0700 Subject: [PATCH] ftp/sftp: move to a new frontends/ directory in preparation for factoring out password-auth component --- src/allmydata/client.py | 4 ++-- src/allmydata/frontends/__init__.py | 0 src/allmydata/{ => frontends}/ftpd.py | 0 src/allmydata/{ => frontends}/sftpd.py | 0 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/allmydata/frontends/__init__.py rename src/allmydata/{ => frontends}/ftpd.py (100%) rename src/allmydata/{ => frontends}/sftpd.py (100%) diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 418ba761..1574615f 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -267,7 +267,7 @@ class Client(node.Node, pollmixin.PollMixin): accounturl = self.get_config("ftpd", "ftp.accounts.url", None) ftp_portstr = self.get_config("ftpd", "ftp.port", "8021") - from allmydata import ftpd + from allmydata.frontends import ftpd s = ftpd.FTPServer(self, accountfile, accounturl, ftp_portstr) s.setServiceParent(self) @@ -279,7 +279,7 @@ class Client(node.Node, pollmixin.PollMixin): pubkey_file = self.get_config("sftpd", "sftp.host_pubkey_file") privkey_file = self.get_config("sftpd", "sftp.host_privkey_file") - from allmydata import sftpd + from allmydata.frontends import sftpd s = sftpd.SFTPServer(self, accountfile, accounturl, sftp_portstr, pubkey_file, privkey_file) s.setServiceParent(self) diff --git a/src/allmydata/frontends/__init__.py b/src/allmydata/frontends/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/allmydata/ftpd.py b/src/allmydata/frontends/ftpd.py similarity index 100% rename from src/allmydata/ftpd.py rename to src/allmydata/frontends/ftpd.py diff --git a/src/allmydata/sftpd.py b/src/allmydata/frontends/sftpd.py similarity index 100% rename from src/allmydata/sftpd.py rename to src/allmydata/frontends/sftpd.py -- 2.45.2