コード例 #1
0
 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')
コード例 #2
0
ファイル: installpath.py プロジェクト: fgimenez/subiquity
    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))
コード例 #3
0
    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))
コード例 #4
0
 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')
コード例 #5
0
ファイル: installpath.py プロジェクト: rzenker/subiquity
    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')