????

Your IP : 18.222.215.12


Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/vendors_api/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/vendors_api/__pycache__/config.cpython-311.pyc

�

K�f�
�	��dZddlmZddlmZddlmZddlZddlZddlmZddl	m
Z
ddlmZd	Z
dadaGd
�de
dgd
�����Zd�Zd�Zd�ZdS)z8
Wrapper over integration config which provides
typing.
�)�absolute_import)�division)�print_functionN)�ConfigParser)�
namedtuple)�NotImplementedByVendorz!/opt/cpvendor/etc/integration.inic�"��eZdZdZ�fd�Z�xZS)�
ScriptsCMDzg
    Wrapper over namedtuple that raises exception
    when we access property that has None value
    c�z��tt|���|��}|�t|���|S)za
        Raise error if command is not implemented,
        but we try to get it in code
        )�superr
�__getattribute__r)�self�item�obj�	__class__s   ���/builddir/build/BUILDROOT/alt-python27-cllib-3.4.8-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/vendors_api/config.pyr
zScriptsCMD.__getattribute__*s:���
�J��%�%�6�6�t�<�<���;�(��.�.�.��
�)�__name__�
__module__�__qualname__�__doc__r
�
__classcell__)rs@rr
r
sB���������
��������rr
�VendorScriptsPath��
panel_info�db_info�packages�users�domains�	resellers�admins�phpc�L�|�dSttj|����S)zm
    Taking command line as input, convert it into
    subprocess args
    If cmd is None -> return None
    N)�tuple�shlex�split)�cmds r�_split_path_or_noner(5s&���{��t����S�!�!�"�"�"rc���tj�t��}t�t
|k�r/t
��}|d}tt|�	d����t|�	d����t|�	d����t|�	d����t|�	d����t|�	d����t|�	d����t|�	d	�����
��a|atS)N�integration_scriptsrrrrrr r!r"r)
�os�path�getmtime�CONFIG_PATH�integration_scripts_cache�config_last_modify_time�_read_config_filer
r(�get)�modify_time�config�scriptss   rr*r*@s���'�"�"�;�/�/�K� �(�#�{�2�2�"�$�$���.�/��$.�*�7�;�;�|�+D�+D�E�E�'����I�(>�(>�?�?�(����Z�)@�)@�A�A�%�g�k�k�'�&:�&:�;�;�'����I�(>�(>�?�?�)�'�+�+�k�*B�*B�C�C�&�w�{�{�8�'<�'<�=�=�#�G�K�K��$6�$6�7�7�	%
�	%
�	%
�!�#.��$�$rc���tdd������t���fd�����D��S)z<
    Parse config file and return result as dictionary.
    NF)�
interpolation�strictc�V��i|]%}|t��|������&S�)�dict�items)�.0�s�parsers  �r�
<dictcomp>z%_read_config_file.<locals>.<dictcomp>`s-���@�@�@��A�t�F�L�L��O�O�$�$�@�@�@r)r�readr.�sections)r?s@rr1r1YsM�����U�
;�
;�
;�F�
�K�K�����@�@�@�@�f�o�o�.?�.?�@�@�@�@r)r�
__future__rrrr+r%�configparserr�collectionsr�vendors_api.exceptionsrr.r/r0r
r(r*r1r:rr�<module>rGs$����'�&�&�&�&�&�������%�%�%�%�%�%�	�	�	�	�����%�%�%�%�%�%�"�"�"�"�"�"�9�9�9�9�9�9�1�� �����������/�	2�	2�	2�	�	����4#�#�#�%�%�%�2A�A�A�A�Ar