summaryrefslogtreecommitdiffstats
path: root/partIntfHelpers.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-04-17 01:30:47 +0000
committerJeremy Katz <katzj@redhat.com>2005-04-17 01:30:47 +0000
commitd8ede9adb056a41f5f14065856995dab9493c684 (patch)
tree68e58899b830846094b3384873a6dc49966bef72 /partIntfHelpers.py
parentf1e4918916112da7568980c95478412064f74c1d (diff)
downloadanaconda-d8ede9adb056a41f5f14065856995dab9493c684.tar.gz
anaconda-d8ede9adb056a41f5f14065856995dab9493c684.tar.xz
anaconda-d8ede9adb056a41f5f14065856995dab9493c684.zip
2005-04-16 Jeremy Katz <katzj@redhat.com>
* textw/partition_text.py (AutoPartitionWindow.__call__): Check for a drive being selected (#124296) * partIntfHelpers.py (mustHaveSelectedDrive): Add UI helper for selected drives error. * iw/partition_gui.py (AutoPartitionWindow.getNext): Use helper.
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r--partIntfHelpers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index 3773222ef..fef7796e5 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -396,6 +396,11 @@ def checkForSwapNoMatch(intf, diskset, partitions):
partedUtils.set_partition_file_system_type(part,
request.fstype)
+
+def mustHaveSelectedDrive(intf):
+ txt =_("You need to select at least one hard drive to have %s installed "
+ "onto.") % (productName,)
+ intf.messageWindow(_("Error"), txt, custom_icon="error")
def queryNoFormatPreExisting(intf):
"""Ensure the user wants to use a partition without formatting."""