__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
o
K��^� � @ s G d d� d�Z dS )c @ sB e Zd Zddd�Zdd� Zdd� Zdd � Zed
d� �Zdd
� Z dS )�
ControllerSet� c C s* || _ |d d � | _|| _d| _g | _d S )N���)�controllers_mod�controller_names� init_args�index� instances)�selfr �namesr r r �3/usr/share/subiquity/subiquitycore/controllerset.py�__init__ s
zControllerSet.__init__c C s |d }t | j|�S )N�
Controller)�getattrr )r �name�cls_namer r r �_get_controller_class s z#ControllerSet._get_controller_classc C s� | j �|� | �|�}t| |�r2d}| jD ]}t||�r |d7 }q| �d�}|t| |�|�}|j}n|| j� }t | ||� t
| j�|_| j�|� d S )N� �Repeated)
r �remover �hasattrr �
isinstancer r r �setattr�len�controller_index�append)r r �klass�c�instance�rep_cls�instr r r �load s
�
zControllerSet.loadc C s$ | j r| �| j d � | j sd S d S �N� )r r �r r r r �load_all. s �zControllerSet.load_allc C s | � � rd S | j| j S )N)�
out_of_boundsr r r# r r r �cur2 s zControllerSet.curc C s | j dk p| j t| j�kS r! )r r r r# r r r r% 8 s zControllerSet.out_of_boundsN)r )
�__name__�
__module__�__qualname__r r r r$ �propertyr&