%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/2582/usr/share/subiquity/console_conf/ui/views/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/2582/usr/share/subiquity/console_conf/ui/views/__pycache__/login.cpython-38.pyc

U

K��^`�@sndZddlZddlmZddlmZddlmZmZddl	m
Z
mZddlm
Z
e�d�ZGd	d
�d
e
�ZdS)z5 Login

Login provides user with language selection

�N)�Text)�done_btn)�ListBox�Pile)�button_pile�Padding)�BaseViewzsubiquitycore.views.logincs@eZdZdZ�fdd�Zdd�Zdd�Zdd	�Zd
d�Z�Z	S)�	LoginViewzUbuntu Corecst||_||_||_||_g|_t��tdtd�ft	�
t|����dtdtd�ft
|���dtd�fg�fg��dS)NZpack�)�opts�model�
controller�netdevs�items�super�__init__rrrZ	center_79r�_build_model_inputsr�_build_buttons)�selfrrr
r��	__class__��3/usr/share/subiquity/console_conf/ui/views/login.pyr#s 



���zLoginView.__init__cCstd|jd�gS)NZDone)Zon_press)r�done)rrrrr5s�zLoginView._build_buttonscCs�|jj}g}|jD]}|jD]}|�|�qq|sHg}|�td��|Sd}d}g}|j|jd�}|jf|�}	|	|jf|�7}	|t|	�t	�
d�g7}|D] }
d|j|
f}|�t|��q�|S)Nzno ownerz(This device is registered to {realname}.z�

Remote access was enabled via authentication with SSO user <{username}>.
Public SSH keys were added to the device for remote access.

{realname} can connect remotely to this device via SSH:)�realname�usernamer
z
    ssh %s@%s)r�userrZactual_global_ip_addresses�appendrrr�formatrZ
line_break)rrZipsZdevZaddrZslZ	local_tplZ
remote_tplZ
login_infoZ
login_textZipZ	ssh_ifacerrrr:s0

���zLoginView._build_model_inputscCs|��dS�N)r)r�resultrrr�confirm^szLoginView.confirmcCs|j��dSr)r
Z
login_done)rZbuttonrrrraszLoginView.done)
�__name__�
__module__�__qualname__�titlerrrr!r�
__classcell__rrrrr	 s$r	)�__doc__ZloggingZurwidrZsubiquitycore.ui.buttonsrZsubiquitycore.ui.containerrrZsubiquitycore.ui.utilsrrZsubiquitycore.viewrZ	getLogger�logr	rrrr�<module>s


Zerion Mini Shell 1.0