mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
ftpd: make sure we're using a patched/fixed Twisted, to avoid confusion later
This commit is contained in:
parent
05a8360177
commit
701e5cd1da
@ -380,6 +380,10 @@ class FTPServer(service.MultiService):
|
|||||||
# we could leave this anonymous, with just the /uri/CAP form
|
# we could leave this anonymous, with just the /uri/CAP form
|
||||||
raise RuntimeError("must provide some translation")
|
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)
|
r = Dispatcher(client)
|
||||||
p = portal.Portal(r)
|
p = portal.Portal(r)
|
||||||
p.registerChecker(c)
|
p.registerChecker(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user