Example #1
0
 def default(self):
     title = _("Filesystem setup")
     footer = (_("Choose guided or manual partitioning"))
     self.ui.set_header(title)
     self.ui.set_footer(footer)
     self.ui.set_body(GuidedFilesystemView(self))
     if self.answers['guided']:
         self.guided()
     elif self.answers['manual']:
         self.manual()
Example #2
0
 def start_ui(self):
     if self._probe_state in [ProbeState.PROBING, ProbeState.REPROBING]:
         self.ui.set_body(SlowProbing(self))
     elif self._probe_state == ProbeState.FAILED:
         self.ui.set_body(ProbingFailed(self))
     else:
         self.ui.set_body(GuidedFilesystemView(self))
         if self.answers['guided']:
             self.guided(self.answers.get('guided-method', 'direct'))
         elif self.answers['manual']:
             self.manual()
Example #3
0
 def start_ui(self):
     if self._cur_probe.state == ProbeState.PROBING:
         self.ui.set_body(SlowProbing(self))
     elif self._cur_probe.state == ProbeState.FAILED:
         self.ui.set_body(ProbingFailed(self))
     else:
         self.ui_shown = True
         # Should display a message if self._cur_probe.restricted,
         # i.e. full device probing failed.
         self.ui.set_body(GuidedFilesystemView(self))
         if self.answers['guided']:
             self.guided(self.answers.get('guided-method', 'direct'))
         elif self.answers['manual']:
             self.manual()
Example #4
0
 def start_ui(self):
     if self._cur_probe.state == ProbeState.PROBING:
         self.ui.set_body(SlowProbing(self))
     elif self._cur_probe.state == ProbeState.FAILED:
         self.ui.set_body(ProbingFailed(self))
     else:
         # Once we've shown the filesystem UI, we stop listening for udev
         # events as merging system changes with configuration the user has
         # performed would be tricky.  Possibly worth doing though! Just
         # not today.
         self.stop_listening_udev()
         # Should display a message if self._cur_probe.restricted,
         # i.e. full device probing failed.
         self.ui.set_body(GuidedFilesystemView(self))
         if self.answers['guided']:
             self.guided(self.answers.get('guided-method', 'direct'))
         elif self.answers['manual']:
             self.manual()
Example #5
0
 def default(self):
     self.ui.set_body(GuidedFilesystemView(self))
     if self.answers['guided']:
         self.guided(self.answers.get('guided-method', 'direct'))
     elif self.answers['manual']:
         self.manual()
Example #6
0
 def default(self):
     self.ui.set_body(GuidedFilesystemView(self))
     if self.answers['guided']:
         self.guided()
     elif self.answers['manual']:
         self.manual()