§ ;Š»j2 ã ó¨ — d Z ddlZddlmZ ddlmZ ddlmZ dZ G d„ de¦ « Z G d „ d e ¦ « Z G d„ de ¦ « Z G d „ d¦ « ZdS )z, Everything that is related to whmapi calls é N)ÚFormattedException)Úrun_command)Ú urlencode)Ú WhmApiRequestÚWhmApiErrorc ó — e Zd ZdZd„ ZdS )r zW An error that is raised in case of an error in communication with whmapi. c ó6 — t j | ||dœ¦ « d S )N)ÚmessageÚcontext)r Ú__init__)Úselfr r s ú—/builddir/build/BUILDROOT/alt-python27-cllib-3.4.44-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/lib/whmapi_lib.pyr zWhmApiError.__init__ s3 € ÝÔ# DØØð+ ð + ñ ô ð ð ð ó N)Ú__name__Ú __module__Ú__qualname__Ú__doc__r © r r r r s- € € € € € ðð ð ð ð ð ð r r c ó — e Zd ZdZdS )ÚWhmLicenseErrorz)A license-related error raised by whmapi.N©r r r r r r r r r " s € € € € € Ø3Ð3Ø€Dr r c ó — e Zd ZdZdS )ÚWhmNoPhpBinariesErrorz; An error when there are no installed php binaries Nr r r r r r ' s € € € € € ðð ð €Dr r c ót — e Zd ZdZdZdZd„ Zd„ Zed„ ¦ « Z e d„ ¦ « Ze d„ ¦ « Zd „ Z d „ ZdS )r a Wrapper over cpanel's whm command-line api tool that allows us to easily build complex requests (filter, sorting, etc) See details in the official cpanel docs (link below) https://documentation.cpanel.net/display/DD/Guide+to+WHM+API+1 z/usr/sbin/whmapi1é c óB — || _ i | _ i | _ ddg| _ d S )Nz--outputÚjson)Ú_commandÚ_filtersÚ_argsÚ_extra_args)r Úcommands r r zWhmApiRequest.__init__: s* € ؈Œ ؈Œ ؈Œ Ø&¨Ð/ˆÔÐÐr c óX — t |d¬¦ « \ }}}|dk rt d|¬¦ « ‚ t j |¦ « }d|v r#d|d v r|d d €d|d d<