From 9e1a444c46abcfc29c2e44ffd102fcc1eda6289e Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 4 May 2006 19:58:53 +0000 Subject: Make all UI steps use anaconda class. Add system-config-keyboard shim. --- autopart.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'autopart.py') diff --git a/autopart.py b/autopart.py index 3f9a1fe75..2adf3e488 100644 --- a/autopart.py +++ b/autopart.py @@ -1652,9 +1652,9 @@ def getAutopartitionBoot(): else: return [ ("/boot", None, 100, None, 0, 1, 0) ] -def queryAutoPartitionOK(intf, diskset, partitions): - type = partitions.autoClearPartType - drives = partitions.autoClearPartDrives +def queryAutoPartitionOK(anaconda): + type = anaconda.id.partitions.autoClearPartType + drives = anaconda.id.partitions.autoClearPartDrives if type == CLEARPART_TYPE_LINUX: msg = CLEARPART_TYPE_LINUX_WARNING_MSG @@ -1667,7 +1667,7 @@ def queryAutoPartitionOK(intf, diskset, partitions): drvstr = "\n\n" if drives == None: - drives = diskset.disks.keys() + drives = anaconda.id.diskset.disks.keys() drives.sort() width = 44 @@ -1686,7 +1686,7 @@ def queryAutoPartitionOK(intf, diskset, partitions): str = "%-*s" % (maxlen, "/dev/"+drive) drvstr = drvstr + str + "\n" - rc = intf.messageWindow(_("Warning"), _(msg) % drvstr, type="yesno", default="no", custom_icon ="warning") + rc = anaconda.intf.messageWindow(_("Warning"), _(msg) % drvstr, type="yesno", default="no", custom_icon ="warning") return rc -- cgit