Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/tap/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/tap/ftp.pyc

ó
N
­Nc@s–dZddlmZddlmZmZmZddlmZddl	m
Z
mZmZddl
Z
de
jejfd„ƒYZd	„ZdS(
s>
I am the support module for making a ftp server with twistd.
iÿÿÿÿ(tinternet(tportaltcheckerststrcred(tftp(tusaget	deprecatetversionsNtOptionscBs~eZdZddddgddddgd	d
ddggZejd
iejddƒd6ƒZd
Zd„Z	d„Z
RS(sP[options].
    WARNING: This FTP server is probably INSECURE do not use it.
    tporttpt2121sset the port numbertroottrs/usr/local/ftps define the root of the ftp-site.t
userAnonymoustt	anonymoussName of the anonymous user.t
optActionstdescrsroot of the ftp sitecOs-tjj|||Ž|jtjƒƒdS(N(RRt__init__t
addCheckerRtAllowAnonymousAccess(tselftatkw((s3/usr/lib/python2.7/dist-packages/twisted/tap/ftp.pyR$scCsj||d<tj|jtjddddƒƒ}tj|dtddƒ|jt	j
|d	tƒƒd
S(s•
        Specify a file containing username:password login info for
        authenticated connections. (DEPRECATED; see --help-auth instead)
        s
password-filetTwistediiitcategoryt
stacklevelitcacheN(RtgetDeprecationWarningStringtopt_password_fileRtVersiontwarningstwarntDeprecationWarningRRtFilePasswordDBtTrue(Rtfilenametmsg((s3/usr/lib/python2.7/dist-packages/twisted/tap/ftp.pyR)s

!(t__name__t
__module__tsynopsist
optParametersRtCompletionstCompleteDirstcompDatatlongdescRR(((s3/usr/lib/python2.7/dist-packages/twisted/tap/ftp.pyRs		cCsªtjƒ}tj|dƒ}tj||jdgƒƒ}|d|_|d|_||_tj|_	yt
|dƒ}Wntk
r™d}nXtj
||ƒS(NRtcredCheckersRR	iI(Rt
FTPFactorytFTPRealmRtPortaltgetttldRtFTPtprotocoltinttKeyErrorRt	TCPServer(tconfigtfR
R
tportno((s3/usr/lib/python2.7/dist-packages/twisted/tap/ftp.pytmakeService6s

	

(t__doc__ttwisted.applicationRttwisted.credRRRttwisted.protocolsRttwisted.pythonRRRR RtAuthOptionMixinR=(((s3/usr/lib/python2.7/dist-packages/twisted/tap/ftp.pyt<module>s"