| Server IP : 185.143.234.130 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux jambul.7ho.st 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : renecafe ( 1327) PHP Version : 8.1.33 Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/__pycache__/ |
Upload File : |
a
`8ab � @ sH d dl mZ ddlmZ ddlmZ ddlmZ dZG dd� de �Z
d S )
� )�deepcopy� )�
Configuration)�Setting)�Source)�ConfigurationManagerc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )r c C s || _ g | _d S )N)�name�settings)�selfr � r �H/home/carl/code/landscape/setoptconf-tmp/build/lib/setoptconf/manager.py�__init__ s zConfigurationManager.__init__c C s$ t |t�r| j�|� ntd��d S )Nz$Can only add objects of type Setting)�
isinstancer r �append� TypeError)r
�settingr r r �add s
zConfigurationManager.addc G s� g }t |�D ]D}t|t�r&|�|� qt|t�rHt|t�rH|�|� � qtd��qt| jd�}|D ]}|j t
| j�| |d�}qb|�� |S )NzAll sources must be a Source)r )�manager�parent)�reversedr r r �type�
issubclassr r r Z
get_configr �validate)r
�sourcesZ
to_process�source�configr r r �retrieve s
�zConfigurationManager.retrieveN)�__name__�
__module__�__qualname__r
r r r r r r r s r N)�copyr r r r r Zsource.baser �__all__�objectr r r r r �<module> s