Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: third_party/twisted_8_1/twisted/tap/ftp.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/twisted_8_1/twisted/tap/__init__.py ('k') | third_party/twisted_8_1/twisted/tap/manhole.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/twisted_8_1/twisted/tap/ftp.py
diff --git a/third_party/twisted_8_1/twisted/tap/ftp.py b/third_party/twisted_8_1/twisted/tap/ftp.py
deleted file mode 100644
index ae60955ba9a91bec00853d52dee10c1b20291df1..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/tap/ftp.py
+++ /dev/null
@@ -1,51 +0,0 @@
-
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-
-"""
-I am the support module for making a ftp server with mktap.
-"""
-
-from twisted.protocols import ftp
-from twisted.python import usage
-from twisted.application import internet
-from twisted.cred import error, portal, checkers, credentials
-
-import os.path
-
-
-class Options(usage.Options):
- synopsis = """Usage: mktap ftp [options].
- WARNING: This FTP server is probably INSECURE do not use it.
- """
- optParameters = [
- ["port", "p", "2121", "set the port number"],
- ["root", "r", "/usr/local/ftp", "define the root of the ftp-site."],
- ["userAnonymous", "", "anonymous", "Name of the anonymous user."],
- ["password-file", "", None, "username:password-style credentials database"],
- ]
-
- longdesc = ''
-
-
-def makeService(config):
- f = ftp.FTPFactory()
-
- r = ftp.FTPRealm(config['root'])
- p = portal.Portal(r)
- p.registerChecker(checkers.AllowAnonymousAccess(), credentials.IAnonymous)
-
- if config['password-file'] is not None:
- p.registerChecker(checkers.FilePasswordDB(config['password-file'], cache=True))
-
- f.tld = config['root']
- f.userAnonymous = config['userAnonymous']
- f.portal = p
- f.protocol = ftp.FTP
-
- try:
- portno = int(config['port'])
- except KeyError:
- portno = 2121
- return internet.TCPServer(portno, f)
« no previous file with comments | « third_party/twisted_8_1/twisted/tap/__init__.py ('k') | third_party/twisted_8_1/twisted/tap/manhole.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698