summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-21 13:10:13 -0500
committerChris Lumens <clumens@redhat.com>2010-02-04 15:07:53 -0500
commit7ea42d120f84005dce27a9d3ca98732c929999ab (patch)
tree1690eebaaf94f14182ee9f66c179ee6d1de13da1 /textw
parent7959758242dfbed72be1376daeecb2132a1b5f23 (diff)
downloadanaconda-7ea42d120f84005dce27a9d3ca98732c929999ab.tar.gz
anaconda-7ea42d120f84005dce27a9d3ca98732c929999ab.tar.xz
anaconda-7ea42d120f84005dce27a9d3ca98732c929999ab.zip
Move storage into the Anaconda class.
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py32
-rw-r--r--textw/upgrade_bootloader_text.py2
-rw-r--r--textw/upgrade_text.py6
3 files changed, 20 insertions, 20 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index e5db580f1..6d1e61b19 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -67,10 +67,10 @@ class PartitionTypeWindow:
for (txt, val) in opts:
typebox.append(txt, val)
- if anaconda.id.storage.clearPartType is None:
+ if anaconda.storage.clearPartType is None:
preselection = CLEARPART_TYPE_LINUX
else:
- preselection = anaconda.id.storage.clearPartType
+ preselection = anaconda.storage.clearPartType
typebox.setCurrent(preselection)
g.add(typebox, 0, 1, (0, 1, 0, 0))
@@ -95,8 +95,8 @@ class PartitionTypeWindow:
screen.pushHelpLine (_("<Space>,<+>,<-> selection | <F2> Add drive | <F12> next screen"))
# restore the drive list each time
- disks = anaconda.id.storage.partitioned
- cleardrives = anaconda.id.storage.clearPartDisks
+ disks = anaconda.storage.partitioned
+ cleardrives = anaconda.storage.clearPartDisks
for disk in disks:
model = disk.model
@@ -129,14 +129,14 @@ class PartitionTypeWindow:
if rc == "F2":
if self.addDriveDialog(screen) != INSTALL_BACK:
- anaconda.id.storage.reset()
+ anaconda.storage.reset()
anaconda.id.bootloader.updateDriveList()
continue
if res == TEXT_BACK_CHECK:
return INSTALL_BACK
- if anaconda.id.storage.checkNoDisks():
+ if anaconda.storage.checkNoDisks():
continue
if len(sel) < 1:
@@ -144,9 +144,9 @@ class PartitionTypeWindow:
continue
anaconda.dispatch.skipStep("autopartitionexecute", skip = 0)
- anaconda.id.storage.doAutoPart = True
- anaconda.id.storage.clearPartType = partmethod_ans
- anaconda.id.storage.clearPartDisks = sel
+ anaconda.storage.doAutoPart = True
+ anaconda.storage.clearPartType = partmethod_ans
+ anaconda.storage.clearPartDisks = sel
break
# ask to review autopartition layout - but only if it's not custom partitioning
@@ -212,7 +212,7 @@ class PartitionTypeWindow:
wwpn = entries[1].strip()
fcplun = entries[2].strip()
try:
- self.anaconda.id.storage.zfcp.addFCP(devnum, wwpn, fcplun)
+ self.anaconda.storage.zfcp.addFCP(devnum, wwpn, fcplun)
except ValueError, e:
log.warn(str(e)) # alternatively popup error dialog instead
@@ -262,8 +262,8 @@ class PartitionTypeWindow:
nic = interfaceList.current()
dcb = dcbCheckbox.selected()
- self.anaconda.id.storage.fcoe.addSan(nic=nic, dcb=dcb,
- intf=self.anaconda.intf)
+ self.anaconda.storage.fcoe.addSan(nic=nic, dcb=dcb,
+ intf=self.anaconda.intf)
screen.popWindow()
return INSTALL_OK
@@ -313,9 +313,9 @@ class PartitionTypeWindow:
raise ValueError, msg
iname = entries[1].strip()
- if not self.anaconda.id.storage.iscsi.initiatorSet:
- self.anaconda.id.storage.iscsi.initiator = iname
- self.anaconda.id.storage.iscsi.addTarget(ip, port, user, pw,
- user_in, pw_in)
+ if not self.anaconda.storage.iscsi.initiatorSet:
+ self.anaconda.storage.iscsi.initiator = iname
+ self.anaconda.storage.iscsi.addTarget(ip, port, user, pw,
+ user_in, pw_in)
return INSTALL_OK
diff --git a/textw/upgrade_bootloader_text.py b/textw/upgrade_bootloader_text.py
index 89e5b438e..3f2d1273e 100644
--- a/textw/upgrade_bootloader_text.py
+++ b/textw/upgrade_bootloader_text.py
@@ -87,7 +87,7 @@ class UpgradeBootloaderWindow:
newToLibata = self._ideToLibata(anaconda.rootPath)
(self.type, self.bootDev) = \
- checkbootloader.getBootloaderTypeAndBoot(anaconda.rootPath, storage=anaconda.id.storage)
+ checkbootloader.getBootloaderTypeAndBoot(anaconda.rootPath, storage=anaconda.storage)
blradio = RadioGroup()
diff --git a/textw/upgrade_text.py b/textw/upgrade_text.py
index a7435388d..6d7bfe72e 100644
--- a/textw/upgrade_text.py
+++ b/textw/upgrade_text.py
@@ -37,7 +37,7 @@ seenExamineScreen = False
class UpgradeMigrateFSWindow:
def __call__ (self, screen, anaconda):
- migent = anaconda.id.storage.migratableDevices
+ migent = anaconda.storage.migratableDevices
g = GridFormHelp(screen, _("Migrate File Systems"), "upmigfs", 1, 4)
@@ -93,7 +93,7 @@ class UpgradeMigrateFSWindow:
except Exception, e:
log.info("failed to get new filesystem type, defaulting to ext3: %s" %(e,))
newfs = getFormat("ext3")
- anaconda.id.storage.migrateFormat(entry, newfs)
+ anaconda.storage.migrateFormat(entry, newfs)
screen.popWindow()
return INSTALL_OK
@@ -195,7 +195,7 @@ class UpgradeSwapWindow:
"and 2000 MB in size."))
else:
screen.popWindow()
- anaconda.id.storage.createSwapFile(dev, val)
+ anaconda.storage.createSwapFile(dev, val)
anaconda.dispatch.skipStep("addswap", 1)
return INSTALL_OK