trivial edits
This commit is contained in:
parent
d75cbabb61
commit
d5832f3c92
|
@ -18,16 +18,15 @@ import logging
|
||||||
|
|
||||||
from subiquitycore.controller import BaseController
|
from subiquitycore.controller import BaseController
|
||||||
from subiquitycore.models import IdentityModel
|
from subiquitycore.models import IdentityModel
|
||||||
from subiquity.ui.views import IdentityView
|
|
||||||
from subiquitycore import utils
|
from subiquitycore import utils
|
||||||
|
|
||||||
|
from subiquity.ui.views import IdentityView
|
||||||
|
|
||||||
log = logging.getLogger('subiquity.controllers.identity')
|
log = logging.getLogger('subiquity.controllers.identity')
|
||||||
|
|
||||||
|
|
||||||
class IdentityController(BaseController):
|
class IdentityController(BaseController):
|
||||||
|
|
||||||
identity_view = None
|
|
||||||
|
|
||||||
def __init__(self, common):
|
def __init__(self, common):
|
||||||
super().__init__(common)
|
super().__init__(common)
|
||||||
self.model = IdentityModel(self.opts)
|
self.model = IdentityModel(self.opts)
|
||||||
|
@ -43,24 +42,26 @@ class IdentityController(BaseController):
|
||||||
def cancel(self):
|
def cancel(self):
|
||||||
self.signal.emit_signal('prev-screen')
|
self.signal.emit_signal('prev-screen')
|
||||||
|
|
||||||
def identity_done(self):
|
# None of the commented out code below is actually called. Maybe it should be?
|
||||||
self.login()
|
|
||||||
|
|
||||||
def login(self):
|
## def identity_done(self):
|
||||||
log.debug("Identity login view")
|
## self.login()
|
||||||
title = ("Configuration Complete")
|
|
||||||
footer = ("View configured user and device access methods")
|
|
||||||
self.ui.set_header(title)
|
|
||||||
self.ui.set_footer(footer)
|
|
||||||
|
|
||||||
net_model = self.controllers['Network'].model
|
## def login(self):
|
||||||
configured_ifaces = net_model.get_configured_interfaces()
|
## log.debug("Identity login view")
|
||||||
login_view = LoginView(self.model, self, configured_ifaces)
|
## 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):
|
## self.ui.set_body(login_view)
|
||||||
# mark ourselves complete
|
|
||||||
utils.disable_subiquity()
|
|
||||||
|
|
||||||
self.signal.emit_signal('next-screen')
|
## def login_done(self):
|
||||||
|
## # mark ourselves complete
|
||||||
|
## utils.disable_subiquity()
|
||||||
|
|
||||||
|
## self.signal.emit_signal('next-screen')
|
||||||
|
|
|
@ -19,6 +19,7 @@ from subiquitycore.controller import BaseController
|
||||||
from subiquity.ui.views import WelcomeView
|
from subiquity.ui.views import WelcomeView
|
||||||
from subiquity.models import WelcomeModel
|
from subiquity.models import WelcomeModel
|
||||||
|
|
||||||
|
|
||||||
class WelcomeController(BaseController):
|
class WelcomeController(BaseController):
|
||||||
|
|
||||||
def __init__(self, common):
|
def __init__(self, common):
|
||||||
|
|
|
@ -29,6 +29,7 @@ log = logging.getLogger("subiquity.views.welcome")
|
||||||
|
|
||||||
|
|
||||||
class WelcomeView(BaseView):
|
class WelcomeView(BaseView):
|
||||||
|
|
||||||
def __init__(self, model, controller):
|
def __init__(self, model, controller):
|
||||||
self.model = model
|
self.model = model
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
|
|
Loading…
Reference in New Issue