Hacked By AnonymousFox

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

a

`8a\	�@s4ddlmZmZddlmZdZGdd�de�ZdS)�)�MissingRequiredError�
ReadOnlyError)�UnicodeMixin)�
Configurationc@s~eZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�ZdS)rNcCs.||jd<i|jd<|D]}||j|j<qdS)N�_parent�	_settings)�__dict__r�name)�self�settings�parent�setting�r�G/home/carl/code/landscape/setoptconf-tmp/build/lib/setoptconf/config.py�__init__	s

zConfiguration.__init__cCsb||jvr>|j|}|jr^|js^|jr4|j�|�q^t|��n |jrR|j�|�ntd|��dS�NzNo such setting "%s")r�required�establishedr�validate_settingr�AttributeError)r
r	r
rrrrs


zConfiguration.validate_settingcCs|D]}|�|�qdS�N)r�r
r	rrr�validateszConfiguration.validatecCsd||jvrB|j|jr"|j|jS|jr4t|j|�S|j|jSn|jrTt|j|�Std|��dSr)rr�valuer�getattr�defaultrrrrr�__getattr__!s
zConfiguration.__getattr__cCs
t||�Sr)r�r
�keyrrr�__getitem__.szConfiguration.__getitem__cCstd��dS)Nz#Cannot change the value of settings�r)r
r	rrrr�__setattr__1szConfiguration.__setattr__cCst|||�dSr)�setattr)r
rrrrr�__setitem__4szConfiguration.__setitem__cCstd��dS)NzCannot delete settingsr rrrr�__delattr__7szConfiguration.__delattr__cCst||�dSr)�delattrrrrr�__delitem__:szConfiguration.__delitem__cCs,t|j���}|jr$|�t|j��t|�Sr)�setr�keysr�update�iter)r
Z	all_namesrrr�__iter__=szConfiguration.__iter__cCsttt|���Sr)�len�listr*�r
rrr�__len__CszConfiguration.__len__cCs|tt|��vSr)r-r*)r
�itemrrr�__contains__FszConfiguration.__contains__csdd��fdd��D��S)NzConfiguration(%s)z, cs g|]}d|t�|�f�qS)z%s=%s)�repr)�.0r	r.rr�
<listcomp>K�z-Configuration.__unicode__.<locals>.<listcomp>)�joinr.rr.r�__unicode__Is�zConfiguration.__unicode__cCsdt|�S)Nz<%s>)�strr.rrr�__repr__NszConfiguration.__repr__)N)�__name__�
__module__�__qualname__rrrrrr!r#r$r&r+r/r1r7r9rrrrrs


rN)�	exceptionrr�utilr�__all__rrrrr�<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox