File: //snap/core20/current/usr/share/subiquity/console_conf/__pycache__/core.cpython-38.pyc
U
K��^= � @ sZ d dl Z d dlmZ d dlmZ d dlmZ e �d�ZG dd� de�Z G dd � d e�Z
dS )
� N)�Application)�ConsoleConfModel)�RecoverySystemsModelzconsole_conf.corec @ s e Zd ZdZeZdddgZdS )�ConsoleConf�console_confZWelcomeZNetworkZIdentityN)�__name__�
__module__�__qualname__�projectr �
make_model�controllers� r
r
�)/usr/share/subiquity/console_conf/core.pyr s �r c s2 e Zd ZdZdd dgZ� fdd�Zdd� Z� ZS )�RecoveryChooserr ZRecoveryChooserWelcomeZRecoveryChooserConfirmc s$ || _ � fdd�| _t� �|� dS )zrTakes the options and raw input/output streams for communicating with the
chooser parent process.
c s
t �� �S )N)r Zfrom_systems_streamr
��
chooser_inputr
r �<lambda>7 s �z*RecoveryChooser.__init__.<locals>.<lambda>N)�_chooser_outputr �super�__init__)�selfZoptsr Zchooser_output�� __class__r r r 0 s zRecoveryChooser.__init__c C s | j �|| j� dS )z(Produce a response to the parent processN)Z
base_modelZto_response_streamr )r Zchoicer
r
r �respond= s zRecoveryChooser.respond)r r r r
r r r �
__classcell__r
r
r r r &