From: Michael Tremer Date: Fri, 8 Aug 2008 09:14:58 +0000 (+0000) Subject: Fixed syntax errors in harddrive.py. X-Git-Tag: v3.0-alpha1~811^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c532ac2d3b6fbd41ecaaa5655dc243257b3377ec;p=ipfire-3.x.git Fixed syntax errors in harddrive.py. --- diff --git a/src/pomona/src/harddrive.py b/src/pomona/src/harddrive.py index 492b3b0f8..5d549962d 100644 --- a/src/pomona/src/harddrive.py +++ b/src/pomona/src/harddrive.py @@ -68,21 +68,21 @@ class HardDriveInstallMethod(InstallMethod): retry = False except: - ans = self.messageWindow( _("Missing ISO 9660 Image"), - _("The installer has tried to mount " - "image #%s, but cannot find it on " - "the hard drive.\n\n" - "Please copy this image to the " - "drive and click Retry. Click Reboot " - " to abort the installation.") - % (cdNum,), type="custom", + ans = self.messageWindow(_("Missing ISO 9660 Image"), + _("The installer has tried to mount " + "image #%s, but cannot find it on " + "the hard drive.\n\n" + "Please copy this image to the " + "drive and click Retry. Click Reboot " + " to abort the installation.") + % (cdNum,), type="custom", custom_icon="warning", custom_buttons=[_("_Reboot"), _("Re_try")]) - if ans == 0: - sys.exit(0) - elif ans == 1: - self.discImages = findIsoImages(self.isoPath, self.messageWindow) + if ans == 0: + sys.exit(0) + elif ans == 1: + self.discImages = findIsoImages(self.isoPath, self.messageWindow) def umountMedia(self): if self.mediaIsMounted: