diff --git a/subiquity/controllers/identity.py b/subiquity/controllers/identity.py index ae5a1f8f..4a26fa05 100644 --- a/subiquity/controllers/identity.py +++ b/subiquity/controllers/identity.py @@ -18,16 +18,15 @@ import logging from subiquitycore.controller import BaseController from subiquitycore.models import IdentityModel -from subiquity.ui.views import IdentityView from subiquitycore import utils +from subiquity.ui.views import IdentityView + log = logging.getLogger('subiquity.controllers.identity') class IdentityController(BaseController): - identity_view = None - def __init__(self, common): super().__init__(common) self.model = IdentityModel(self.opts) @@ -43,24 +42,26 @@ class IdentityController(BaseController): def cancel(self): self.signal.emit_signal('prev-screen') - def identity_done(self): - self.login() + # None of the commented out code below is actually called. Maybe it should be? - def login(self): - log.debug("Identity login view") - title = ("Configuration Complete") - footer = ("View configured user and device access methods") - self.ui.set_header(title) - self.ui.set_footer(footer) + ## def identity_done(self): + ## self.login() - net_model = self.controllers['Network'].model - configured_ifaces = net_model.get_configured_interfaces() - login_view = LoginView(self.model, self, configured_ifaces) + ## def login(self): + ## log.debug("Identity login view") + ## title = ("Configuration Complete") + ## footer = ("View configured user and device access methods") + ## self.ui.set_header(title) + ## self.ui.set_footer(footer) - self.ui.set_body(login_view) + ## net_model = self.controllers['Network'].model + ## configured_ifaces = net_model.get_configured_interfaces() + ## login_view = LoginView(self.model, self, configured_ifaces) - def login_done(self): - # mark ourselves complete - utils.disable_subiquity() + ## self.ui.set_body(login_view) - self.signal.emit_signal('next-screen') + ## def login_done(self): + ## # mark ourselves complete + ## utils.disable_subiquity() + + ## self.signal.emit_signal('next-screen') diff --git a/subiquity/controllers/welcome.py b/subiquity/controllers/welcome.py index b8b03fca..98139c42 100644 --- a/subiquity/controllers/welcome.py +++ b/subiquity/controllers/welcome.py @@ -19,6 +19,7 @@ from subiquitycore.controller import BaseController from subiquity.ui.views import WelcomeView from subiquity.models import WelcomeModel + class WelcomeController(BaseController): def __init__(self, common): diff --git a/subiquity/ui/views/welcome.py b/subiquity/ui/views/welcome.py index b4f00e27..f65074f3 100644 --- a/subiquity/ui/views/welcome.py +++ b/subiquity/ui/views/welcome.py @@ -29,6 +29,7 @@ log = logging.getLogger("subiquity.views.welcome") class WelcomeView(BaseView): + def __init__(self, model, controller): self.model = model self.controller = controller