Your IP : 172.28.240.42


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

ó
[³XMc@s—dZddlZddlmZddlmZddlmZddlm	Z	ddl
mZmZdZ
d	Zd
efd„ƒYZeƒZdS(s;
Cred plugin for a file of the format 'username:password'.
iÿÿÿÿN(t
implements(tplugin(tFilePasswordDB(tICheckerFactory(tIUsernamePasswordtIUsernameHashedPasswords¶
This checker expects to receive the location of a file that
conforms to the FilePasswordDB format. Each line in the file
should be of the format 'username:password', in plain text.
sWarning: not a valid filetFileCheckerFactorycBsNeZdZeeejƒdZeZ	dZ
eefZ
ejZd„ZRS(s7
    A factory for instances of L{FilePasswordDB}.
    tfiles,Location of a FilePasswordDB-formatted file.cCshddlm}|jƒs/td|j‚n/||ƒjƒs^|jjdt|fƒnt	|ƒS(sÝ
        This checker factory expects to get the location of a file.
        The file should conform to the format required by
        L{FilePasswordDB} (using defaults for all
        initialization parameters).
        iÿÿÿÿ(tFilePaths%r requires a filenames%s: %s
(
ttwisted.python.filepathRtstript
ValueErrortauthTypetisfileterrorOutputtwritetinvalidFileWarningR(tselft	argstringR((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_file.pytgenerateChecker,s(t__name__t
__module__t__doc__RRRtIPluginRtfileCheckerFactoryHelptauthHelptargStringFormatRRtcredentialInterfacestsyststderrRR(((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_file.pyRs	(RRtzope.interfaceRttwistedRttwisted.cred.checkersRttwisted.cred.strcredRttwisted.cred.credentialsRRRRtobjectRttheFileCheckerFactory(((s=/usr/lib/python2.7/dist-packages/twisted/plugins/cred_file.pyt<module>s