%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/current/usr/share/subiquity/console_conf/ui/views/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/current/usr/share/subiquity/console_conf/ui/views/__pycache__/login.cpython-310.pyc

o

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)N�pack�)�opts�model�
controller�netdevs�items�super�__init__rrr�	center_79r�_build_model_inputsr�_build_buttons)�selfrr
rr��	__class__��3/usr/share/subiquity/console_conf/ui/views/login.pyr#s 



���zLoginView.__init__cCstd|jd�gS)N�Done)�on_press)r�done)rrrrr5s�zLoginView._build_buttonscCs�|jj}g}|jD]
}|jD]}|�|�qq	|s$g}|�td��|Sd}d}g}|j|jd�}|jdi|��}	|	|jdi|��7}	|t|	�t	�
d�g7}|D]}
d|j|
f}|�t|��qP|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�usernamerz
    ssh %s@%sr)r
�userr�actual_global_ip_addresses�appendrrr�formatr�
line_break)rr �ips�dev�addr�sl�	local_tpl�
remote_tpl�
login_info�
login_text�ip�	ssh_ifacerrrr:s2

����zLoginView._build_model_inputscCs|��dS�N)r)r�resultrrr�confirm^szLoginView.confirmcCs|j��dSr/)r�
login_done)r�buttonrrrraszLoginView.done)
�__name__�
__module__�__qualname__�titlerrrr1r�
__classcell__rrrrr	 s$r	)�__doc__�logging�urwidr�subiquitycore.ui.buttonsr�subiquitycore.ui.containerrr�subiquitycore.ui.utilsrr�subiquitycore.viewr�	getLogger�logr	rrrr�<module>s


Zerion Mini Shell 1.0