/opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/setoptconf/__pycache__/manager.cpython-39.pyc (1392B)
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 Ú
s