/snap/core20/2866/usr/share/subiquity/subiquitycore/__pycache__
NameSizeModeActions
async_helpers.cpython-38.pyc21910644editdlrm
context.cpython-38.pyc44040644editdlrm
controller.cpython-38.pyc53210644editdlrm
controllerset.cpython-38.pyc16660644editdlrm
core.cpython-38.pyc140420644editdlrm
file_util.cpython-38.pyc8770644editdlrm
gettext38.cpython-38.pyc180180644editdlrm
i18n.cpython-38.pyc13120644editdlrm
log.cpython-38.pyc8610644editdlrm
lsb_release.cpython-38.pyc7740644editdlrm
netplan.cpython-38.pyc54830644editdlrm
palette.cpython-38.pyc26510644editdlrm
prober.cpython-38.pyc14650644editdlrm
screen.cpython-38.pyc40820644editdlrm
signals.cpython-38.pyc18650644editdlrm
snapd.cpython-38.pyc64420644editdlrm
ssh.cpython-38.pyc24520644editdlrm
utils.cpython-38.pyc42620644editdlrm
view.cpython-38.pyc25770644editdlrm
__init__.cpython-38.pyc2610644editdlrm
Edit: /snap/core20/2866/usr/share/subiquity/subiquitycore/__pycache__/controller.cpython-38.pyc (5321B)
U K^@sVddlmZmZddlZedZGdddeZGdddeZGdd d eZ dS) )ABCabstractmethodNzsubiquitycore.controllerc@seZdZdZdS)Skipz@Raise this from a controller's start_ui method to skip a screen.N)__name__ __module__ __qualname____doc__r r 0/usr/share/subiquity/subiquitycore/controller.pyrsrc@seZdZdZgZdZddZddZddZe d d Z e d d Z e d dZ ddZddZddZdddZddZdddZdS)BaseControllerzBase class for controllers.NcCst|jdtd |_|j|_|j|_|j|_||_|jjj |jdd|_|j |ji|_ |j dk r|t |jj|j |_dS)NZ ControllerDEBUG)Z childlevel)typerlennameZuisignalZoptsappcontextZchildZanswersget model_namegetattrZ base_modelZmodel)selfrr r r __init__s zBaseController.__init__cCs8g}|jD]\}}||t||fq |j|dS)z6Defines signals associated with controller from model.N)signalsappendrrZconnect_signals)rrZsigcbr r r register_signals*szBaseController.register_signalscCsdS)aGCalled just before the main loop is started. At the time this is called, all controllers and models and so on have been created. This is when the controller should start interacting with the outside world, e.g. probing for network devices or start making connections to the snap store. Nr rr r r start1szBaseController.startcCsdSNr rr r r cancel;szBaseController.cancelcCs$|jjj}t|tr|j}q ||kSr)rZ controllersZcur isinstanceRepeatedControllerorig)rinstr r r showing?s  zBaseController.showingcCsdS)z_Start running this controller's UI. This method should call self.ui.set_body. Nr rr r r start_uiFszBaseController.start_uicCsdS)aStop running this controller's UI. This method doesn't actually need to remove this controller's UI as the next one is about to replace it, it's more of a hook to stop any background tasks that can be stopped when the UI is not running. Nr rr r r end_uiMszBaseController.end_uicCsdSrr rr r r serializeVszBaseController.serializecCs|dk rtd|dS)Nz missing deserialize method on {}) Exceptionformat)rdatar r r deserializeYszBaseController.deserializec cs|D]~\}}t|d||d}|dkrBt|d|dd}t||}ddlm} ||}t|j| rz|jd|||_dVqdV|j D] } | q| |r|j j std|ddS) Nz_action_clean_{}_{}z_action_clean_{}cSs|Srr )xr r r ez1BaseController._enter_form_data..r)SelectorZselectzanswers left form invalid!)itemsrr)Zsubiquitycore.ui.selectorr0r ZwidgetZ_emitvalue_fieldsZvalidateZ validatedZdone_btnZenabledr(Z _click_done) rZformr*ZsubmitZ clean_suffixkvcZfieldr0Zbfr r r _enter_form_data`s.      zBaseController._enter_form_dataccs|D]}||EdHqdSr)Z_answers_action)rZactionsactionr r r _run_actionsvszBaseController._run_actionscCsV|dkrd|jj}z t|Wntk r6YdSX|jj||j||ddS)Ng?g?)rZ scale_factornext StopIterationZaio_loopZ call_later _run_iterator)ritZdelayr r r r<zs  zBaseController._run_iterator)r,)N)rrrrrrrrrrrpropertyr$r%r&r'r+r7r9r<r r r r r s$       r c@s,eZdZddZddZddZddZd S) r!cCs(d|j||_||_||_|j|_dS)Nz{}-{})r)rr"indexr)rr"r?r r r rszRepeatedController.__init__cCsdSrr rr r r rsz#RepeatedController.register_signalscCs|j|jdSr)r"r%r?rr r r r%szRepeatedController.start_uicCs|jdSr)r"rrr r r rszRepeatedController.cancelN)rrrrrr%rr r r r r!sr!) abcrrZloggingZ getLoggerlogr(rr r!r r r r s  k