Exemplo n.º 1
0
 def format_entire(self, disk):
     log.debug("format_entire {}".format(disk.label))
     header = (_("Format and/or mount {}").format(disk.label))
     footer = _("Format or mount whole disk.")
     self.ui.set_header(header)
     self.ui.set_footer(footer)
     afv_view = FormatEntireView(self.model, self, disk, lambda : self.partition_disk(disk))
     self.ui.set_body(afv_view)
Exemplo n.º 2
0
 def format_mount_partition(self, partition):
     log.debug("format_mount_partition {}".format(partition))
     if partition.fs() is not None:
         header = (_("Mount partition {} of {}").format(partition._number, partition.device.label))
         footer = _("Mount partition.")
     else:
         header = (_("Format and mount partition {} of {}").format(partition._number, partition.device.label))
         footer = _("Format and mount partition.")
     self.ui.set_header(header)
     self.ui.set_footer(footer)
     afv_view = FormatEntireView(self.model, self, partition, self.manual)
     self.ui.set_body(afv_view)
Exemplo n.º 3
0
 def format_mount_partition(self, partition):
     log.debug("format_mount_partition {}".format(partition))
     afv_view = FormatEntireView(self.model, self, partition, self.manual)
     self.ui.set_body(afv_view)
Exemplo n.º 4
0
 def format_entire(self, disk):
     log.debug("format_entire {}".format(disk.label))
     afv_view = FormatEntireView(self.model, self, disk,
                                 lambda: self.partition_disk(disk))
     self.ui.set_body(afv_view)