summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-01 20:17:56 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-02 09:47:11 -1000
commitfbbe047b552af5fd306fa6226ed625f3e1afe9bd (patch)
tree2a75b421e2fa294ee10607d7389846b5e6047e5e /iw
parentbe2303f4986bc19fe542e85218bbcd6db9f25691 (diff)
downloadanaconda-fbbe047b552af5fd306fa6226ed625f3e1afe9bd.tar.gz
anaconda-fbbe047b552af5fd306fa6226ed625f3e1afe9bd.tar.xz
anaconda-fbbe047b552af5fd306fa6226ed625f3e1afe9bd.zip
Syntax fixes for new storage code.
Misc syntax fixes for the new storage code. Generated these while trying to do a 'Create custom layout' install.
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_dialog_gui.py5
-rw-r--r--iw/partition_ui_helpers_gui.py11
2 files changed, 8 insertions, 8 deletions
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 2fdf85604..d1af32da0 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -27,6 +27,7 @@ import gtk
import gui
from storage.devices import PartitionDevice
+from storage.deviceaction import ActionCreateFormat
from partition_ui_helpers_gui import *
from constants import *
@@ -190,14 +191,14 @@ class PartitionEditor:
actions.append(ActionCreateDevice(request))
else:
# preexisting partition, just set mount point and format flag
- request = copy.copy(self.origrequest)
+ request = self.origrequest
mountpoint = self.mountCombo.get_children()[0].get_text()
if self.fsoptionsDict.has_key("formatcb") and \
self.fsoptionsDict["formatcb"].get_active():
fmt_class = self.fsoptionsDict["fstypeCombo"].get_active_value()
format = fmt_class(mountpoint=mountpoint)
if self.fsoptionsDict.has_key("lukscb") and \
- lukscb.get_active() and \
+ self.fsoptionsDict["lukscb"].get_active() and \
request.format.type != "luks":
luksdev = LUKSDevice("luks%d" % self.storage.nextID,
format=format,
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index fa1871220..ad7303e85 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -30,7 +30,7 @@ import iutil
from constants import *
from partIntfHelpers import *
from partedUtils import *
-from storage.formats import device_formats, getFormat
+from storage.formats import device_formats, getFormat, get_default_filesystem_type
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -185,11 +185,10 @@ def createFSTypeMenu(fstype, fstypechangeCB, mountCombo,
store = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_PYOBJECT)
fstypecombo = datacombo.DataComboBox(store)
- types = device_formats.keys()
if availablefstypes:
- names = availablefstypes
+ names = [ availablefstypes ]
else:
- names = types.keys()
+ names = device_formats.keys()
fs = getFormat(fstype)
if fs and fs.supported and fs.formattable:
default = fstype
@@ -209,7 +208,7 @@ def createFSTypeMenu(fstype, fstypechangeCB, mountCombo,
if format.formattable:
fstypecombo.append(name, device_formats[name])
- if default and default.type == name:
+ if default == name:
defindex = i
defismountable = format.mountable
i = i + 1
@@ -324,7 +323,7 @@ def createPreExistFSOptionSection(origrequest, maintable, row, mountCombo,
migratecb.set_active(istruefalse(origrequest.format.migrate))
# TODO: unimplemented
- migtypes = origrequest.format.migrationTargets
+ migtypes = origrequest.format.migrationTarget
maintable.attach(migratecb, 0, 1, row, row + 1)
migfstypeCombo = createFSTypeMenu(ofstype, None, None,