]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
ftpd: make sure we're using a patched/fixed Twisted, to avoid confusion later
authorBrian Warner <warner@allmydata.com>
Tue, 7 Oct 2008 01:14:11 +0000 (18:14 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 7 Oct 2008 01:14:11 +0000 (18:14 -0700)
src/allmydata/ftpd.py

index eb475c91df00797b74fdba7ecc9c0e48f3c5e8e5..4bd84098856fbb8a309330f7a17e13e8b4e84267 100644 (file)
@@ -380,6 +380,10 @@ class FTPServer(service.MultiService):
             # we could leave this anonymous, with just the /uri/CAP form
             raise RuntimeError("must provide some translation")
 
+        # make sure we're using a patched Twisted that uses IWriteFile.close:
+        # see docs/ftp.txt for details.
+        assert "close" in ftp.IWriteFile.names(), "your twisted is lacking"
+
         r = Dispatcher(client)
         p = portal.Portal(r)
         p.registerChecker(c)