ok

Mini Shell

Direktori : /proc/self/root/usr/lib/python2.7/site-packages/clcommon/cpapi/
Upload File :
Current File : //proc/self/root/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pyc

�
b=0Yc@s�dZddlZddlmZddlmZmZddlmZd�Z	dd�Z
d	�Zed
kr�ddl
Z
e�\ZZer�eGHner�e
je�q�ndS(s5
CloudLinux control panel API command line interface
i����N(tcpapi(tprepare_data_jsontprepare_attention_json(tcpapiexceptionsc	Cs�tjdd�}|jdddddtdd	�|jd
d�}|jd�}|jd
dd�|jd�}|jddd�|jd�}|jddddd�|jddddtdd�|S(Ntdescriptions>%(prog)s - CloudLinux control panel API command line interfaces-js--jsontactiont
store_truetdefaultthelpsOutput in json formattdesttcommandtdocroottdomainsReturn document root for domaintuserdomainss<Return domain and document root pairs for control panel usertdblogin_cplogin_pairss
--cplogin_lsttnargst*s$Return mapping for this system userss--with_system_userssShow system users in output(targparsetArgumentParsertadd_argumenttFalsetadd_subparserst
add_parser(tparsert
subparserstdocroot_parsertuserdomains_parsertdblogin_cplogin_pairs_parser((s:/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pytcpapi_parsers"t csdjt�fd�|��S(Ns
cs
�j|�S(N(tjoin(ttuple_(tsep(s:/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pyt<lambda>#s(Rtmap(tdataR ((R s:/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pyt
flat_plain"sc
Cs�t�}|j�}d}d}y|jdkr�tj|j�\}}|jrqti|d6|d6�}q0|d|}n�|jdkr�tj	|j	�}|jr�t
td�|��}t|�}q0t|�}nN|jdkr0tj
|j|j�}|jr!t|�}q0t|�}nWnStjtjfk
r�}	|jrmtt|	��}q�d	}d
t|	�}nX||fS(NiRRtuserRR
cSs|\}}i|d6|d6S(NRR((t.0RR((s:/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pyR!5sRisERROR: (Rt
parse_argstNoneR
RRRtjsonRR
tlistR"R$Rtcplogin_lsttwith_system_usersRtNotSupportedtNoDomainRtstr(
Rt	namespacetoutput_t	exit_codeRR%tdomain_docroot_pairsR#t
db_mappingte_((s:/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pytmain&s8					t__main__(t__doc__RtclcommonRtclcommon.cloutputRRtclcommon.cpapiRRR$R6t__name__tsysR1R2texit(((s:/usr/lib/python2.7/site-packages/clcommon/cpapi/clcpapi.pyt<module>s		#

Zerion Mini Shell 1.0