Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/twisted/words/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/twisted/words/__pycache__/tap.cpython-37.opt-1.pyc

B

;��]v	�@s�dZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZm
Z
ddlmZmZmZmZGd	d
�d
ejej�Zdd�ZdS)
z
Shiny new words service maker
�N)�strports)�MultiService)�usage)�plugin)�iwords�service)�checkers�credentials�portal�strcredc@s�eZdZejgZdde��dfgZe	j
dgd�ZiZdZ
xNe�ej�D]>Z
e
jeksXt�e
ee
j<e�e
jdddde
jdf�qFW[
d	d
�Zdd�Zd
d�ZdS)�Options�hostnameNz*Name of this server; purely an informative�group)ZmultiUsez-portz2strports description of the port to bind for the  z servercOs tjj|f|�|�g|d<dS)N�groups)rr�__init__)�self�a�kw�r�D/opt/alt/python37/lib64/python3.7/site-packages/twisted/words/tap.pyr%szOptions.__init__cCs|d�|�tjj��dS)z+Specify a group which should exist
        rN)�append�decode�sys�stdin�encoding)r�namerrr�	opt_group)szOptions.opt_groupcCs|�t�|��dS)z�
        Name of a passwd-style file. (This is for
        backwards-compatibility only; you should use the --auth
        command instead.)
        N)Z
addCheckerrZFilePasswordDB)r�filenamerrr�
opt_passwd.szOptions.opt_passwd)�__name__�
__module__�__qualname__r	ZIUsernamePasswordZsupportedInterfaces�socketZgethostnameZ
optParametersrZCompletionsZcompData�interfacePluginsZplgrZ
getPluginsrZIProtocolPluginr�AssertionErrorrrrrrrrrrs"

rc
Cs�|�dg�}t�|d�}t�||�}t�}xL|jD]B}|�|d�}|dk	r4|j|�||�}t�||�}|�	|�q4Wx|dD]}	|�
|	�q�W|S)N�credCheckersr
z-portr)�getrZInMemoryWordsRealmr
ZPortalrr#Z
getFactoryrZsetServiceParentZcreateGroup)
Zconfigr%Z
wordsRealmZwordsPortalZmsvcZplgNameZport�factoryZsvc�grrr�makeService6sr))�__doc__rr"Ztwisted.applicationrZtwisted.application.servicerZtwisted.pythonrZtwistedrZ
twisted.wordsrrZtwisted.credrr	r
rrZAuthOptionMixinr)rrrr�<module>s$