subiquity/system_setup/client/controllers/overview.py

29 lines
748 B
Python

import logging
from subiquity.client.controller import SubiquityTuiController
from system_setup.ui.views.overview import OverviewView
log = logging.getLogger('ubuntu_wsl_oobe.controllers.overview')
class OverviewController(SubiquityTuiController):
async def make_ui(self):
real_name = ""
identity = getattr(self.app.client, "identity")
if identity is not None:
data = await identity.GET()
real_name = data.realname
return OverviewView(self, real_name)
def cancel(self):
self.app.cancel()
def run_answers(self):
self.done(None)
def done(self, result):
log.debug(
"OverviewController.done next_screen")
self.app.next_screen()