HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/__pycache__/manager.cpython-311.pyc
�

�hb��V�ddlmZddlmZddlmZddlmZdZGd�de	��Z
d	S)
�)�deepcopy�)�
Configuration)�Setting)�Source)�ConfigurationManagerc� �eZdZd�Zd�Zd�ZdS)rc�"�||_g|_dS)N)�name�settings)�selfrs  �G/opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/manager.py�__init__zConfigurationManager.__init__s����	���
�
�
�c��t|t��r|j�|��dSt	d���)Nz$Can only add objects of type Setting)�
isinstancerr�append�	TypeError)r
�settings  r�addzConfigurationManager.adds@���g�w�'�'�	D��M� � ��)�)�)�)�)��B�C�C�Crc���g}t|��D]�}t|t��r|�|���-t|t��r3t|t��r|�|�����ut
d���t|j���}|D],}|�	t|j��||���}�-|���|S)NzAll sources must be a Source)r)�manager�parent)�reversedrrr�type�
issubclassrrr�
get_configr�validate)r
�sources�
to_process�source�configs     r�retrievezConfigurationManager.retrieves���
��w�'�'�	@�	@�F��&�&�)�)�
@��!�!�&�)�)�)�)��F�D�)�)�
@�j���.H�.H�
@��!�!�&�&�(�(�+�+�+�+�� >�?�?�?���
�6�6�6�� �	�	�F��&�&����'�'��f�'���F�F�	�������
rN)�__name__�
__module__�__qualname__rrr#�rrrrsD���������D�D�D�����rrN)�copyrr"rrr�source.baser�__all__�objectrr'rr�<module>r,s���������!�!�!�!�!�!�������������$�������6�����r