def manual(self): self.ui.set_body(FilesystemView(self.model, self)) if self.answers['guided']: self.finish() if self.answers['manual']: self._run_iterator(self._run_actions(self.answers['manual'])) self.answers['manual'] = []
def manual(self): title = _("Filesystem setup") footer = (_("Select available disks to format and mount")) self.ui.set_header(title) self.ui.set_footer(footer) self.ui.set_body(FilesystemView(self.model, self)) if self.answers['guided']: self.finish()
def manual(self): self.ui.set_body(FilesystemView(self.model, self)) if self.answers['guided']: self.finish(self.app.confirm_install()) if self.answers['manual']: self.app.aio_loop.create_task( self._run_actions(self.answers['manual'])) self.answers['manual'] = []
def filesystem(self, reset=False): # FIXME: Is this the best way to zero out this list for a reset? if reset: log.info("Resetting Filesystem model") self.model.reset() title = "Filesystem setup" footer = ("Select available disks to format and mount") self.ui.set_header(title) self.ui.set_footer(footer, 30) self.ui.set_body(FilesystemView(self.model, self.signal))
async def _guided_choice(self, choice): status = await self.app.wait_with_progress( self.endpoint.guided.POST(choice)) self.model = FilesystemModel(status.bootloader) self.model.load_server_data(status) if self.model.bootloader == Bootloader.PREP: self.supports_resilient_boot = False else: release = lsb_release()['release'] self.supports_resilient_boot = release >= '20.04' self.ui.set_body(FilesystemView(self.model, self))
async def _reset(self): status = await self.endpoint.reset.POST() self.app.ui.block_input = False self.model.load_server_data(status) self.ui.set_body(FilesystemView(self.model, self))
def manual(self): self.ui.set_body(FilesystemView(self.model, self)) if self.answers['guided']: self.finish()
def manual(self): self.ui.set_body(FilesystemView(self.model, self))