HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/core22/current/usr/share/subiquity/subiquitycore/__pycache__/controller.cpython-310.pyc
o

K��^��@s>ddlmZddlZddlmZe�d�ZGdd�de�ZdS)�)�ABCN)�Optionalzsubiquitycore.controllerc@sBeZdZUdZdZeeed<dd�Zdd�Z	dd	�Z
d
d�ZdS)�BaseControllerzBase class for controllers.N�
model_namecCsbt|�jdtd��|_|j|_||_|jjj|jdd�|_|jdur/t	|jj
|j�|_dSdS)N�
Controller�DEBUG)�
childlevel)�type�__name__�len�name�opts�app�context�childr�getattr�
base_model�model)�selfr�r�0/usr/share/subiquity/subiquitycore/controller.py�__init__s
�zBaseController.__init__cCsdS)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�rrrr�start#szBaseController.startcCsdS)Nrrrrr�	serialize-szBaseController.serializecCs|durtd�|���dS)Nz missing deserialize method on {})�	Exception�format)r�datarrr�deserialize0s�zBaseController.deserialize)r
�
__module__�__qualname__�__doc__rr�str�__annotations__rrrrrrrrrs

r)�abcr�logging�typingr�	getLogger�logrrrrr�<module>s