def installpath(self): self.ui.set_body(InstallpathView(self.model, self)) if 'path' in self.answers: path = self.answers['path'] self.model.path = path if path == 'ubuntu': self.install_ubuntu() else: self.model.update(self.answers) self.signal.emit_signal('next-screen')
def installpath(self): title = "15.10" excerpt = ("Welcome to Ubuntu! The world's favourite platform " "for clouds, clusters and amazing internet things. " "This is the installer for Ubuntu on servers and " "internet devices.") footer = ("Use UP, DOWN arrow keys, and ENTER, to " "navigate options") self.ui.set_header(title, excerpt) self.ui.set_footer(footer, 10) self.ui.set_body(InstallpathView(self.model, self.signal))
def installpath(self): title = "Ubuntu %s" % ( lsb_release.get_distro_information()['RELEASE'], ) excerpt = _("Welcome to Ubuntu! The world's favorite platform " "for clouds, clusters, and amazing internet things. " "This is the installer for Ubuntu on servers and " "internet devices.") footer = _("Use UP, DOWN arrow keys, and ENTER, to " "navigate options") self.ui.set_header(title, excerpt) self.ui.set_footer(footer) self.ui.set_body(InstallpathView(self.model, self.signal))
def default(self): self.ui.set_body(InstallpathView(self.model, self)) if 'path' in self.answers: path = self.answers['path'] self.model.path = path if path == 'ubuntu': self.install_ubuntu() else: self.model.update(self.answers) log.debug( "InstallpathController.default next-screen answers=%s", self.answers) self.signal.emit_signal('next-screen')
def installpath(self): title = "Ubuntu %s"%(lsb_release.get_distro_information()['RELEASE'],) excerpt = _("Welcome to Ubuntu! The world's favourite platform " "for clouds, clusters, and amazing internet things. " "This is the installer for Ubuntu on servers and " "internet devices.") footer = _("Use UP, DOWN arrow keys, and ENTER, to " "navigate options") self.ui.set_header(title, excerpt) self.ui.set_footer(footer) self.ui.set_body(InstallpathView(self.model, self)) if 'path' in self.answers: path = self.answers['path'] self.model.path = path if path == 'ubuntu': self.install_ubuntu() else: self.model.update(self.answers) self.signal.emit_signal('next-screen')