diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-06-25 18:30:05 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-06-25 18:30:05 +0000 |
commit | 9b747ab57465b419c9579906ec7ed23a388d8a79 (patch) | |
tree | fd6e2ecefc1d7a9ac3b39562ef1c0348b9b2f18d /textw | |
parent | fd74b8c3b000c4164613e1c9caaf3d7845fd3c0f (diff) | |
download | anaconda-9b747ab57465b419c9579906ec7ed23a388d8a79.tar.gz anaconda-9b747ab57465b419c9579906ec7ed23a388d8a79.tar.xz anaconda-9b747ab57465b419c9579906ec7ed23a388d8a79.zip |
pass the instdata into the autopartition method for the moment
Diffstat (limited to 'textw')
-rw-r--r-- | textw/partition_text.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py index 56671abef..051386dcd 100644 --- a/textw/partition_text.py +++ b/textw/partition_text.py @@ -522,6 +522,7 @@ class PartitionWindow: self.intf.messageWindow(_("Error With Request"), "%s" % (err)) continue + request = origrequest # backup current (known working) configuration backpart = self.partitions.copy() @@ -735,7 +736,7 @@ class PartitionWindow: self.fsset = fsset self.diskset = diskset self.intf = intf - + self.diskset.openDevices() self.partitions = partitions @@ -799,8 +800,8 @@ class AutoPartitionWindow: flag = FLAGS_SET # XXX need a way to disable the checkbox tree - def __call__(self, screen, type, cleardrives, diskset, intf, useAuto): - if not useAuto: + def __call__(self, screen, id, intf): + if not id.useAutopartitioning: return INSTALL_NOOP self.g = GridFormHelp(screen, _("Autopartitioning"), "autopartitioning", 1, 6) @@ -810,14 +811,15 @@ class AutoPartitionWindow: typebox.append(_("Remove all Linux partitions"), CLEARPART_TYPE_LINUX) typebox.append(_("Remove all partitions"), CLEARPART_TYPE_ALL) typebox.append(_("Remove no partitions"), CLEARPART_TYPE_NONE) - typebox.setCurrent(type) + typebox.setCurrent(id.autoClearPartType) self.g.add(typebox, 0, 2, (0,1,0,0)) # list of drives to select which to clear subgrid = Grid(1, 2) driveLbl = Label(_("Clear Partitions on These Drives:")) + cleardrives = id.autoClearPartDrives subgrid.setField(driveLbl, 0, 0) - disks = diskset.disks.keys() + disks = id.diskset.disks.keys() drivelist = CheckboxTree(height=3, scroll=1) if not cleardrives or len(cleardrives) < 1: for disk in disks: @@ -844,6 +846,6 @@ class AutoPartitionWindow: if res == TEXT_BACK_CHECK: return INSTALL_BACK - type = typebox.current() - cleardrives = drivelist.getSelection() + id.autoClearPartType = typebox.current() + id.autoClearPartDrives = drivelist.getSelection() return INSTALL_OK |