summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-07-17 20:38:34 +0000
committerMike Fulbright <msf@redhat.com>2002-07-17 20:38:34 +0000
commit8b2e331651b985d6a13d049f579f19ee45fcf248 (patch)
treefadedba8bbfcac257757a0a3b0aab7aebeacd1be
parent988240d7a22c16fbcf085294ea846d0aeeb366a1 (diff)
downloadanaconda-8b2e331651b985d6a13d049f579f19ee45fcf248.tar.gz
anaconda-8b2e331651b985d6a13d049f579f19ee45fcf248.tar.xz
anaconda-8b2e331651b985d6a13d049f579f19ee45fcf248.zip
fix various problems with device edit dialog
-rw-r--r--iw/network_gui.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 28147240c..399f91166 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -165,13 +165,15 @@ class NetworkWindow(InstallWindow):
_("The hostname \"%s\" is not valid for the following reason:\n\n%s") % (hostname, error))
def handleIPError(self, field, errmsg):
+ newfield = string.replace(field, "_", "")
self.intf.messageWindow(_("Error With Data"),
_("An error occurred converting "
- " the value entered for \"%s\":\n\n%s" % (field, errmsg)))
+ " the value entered for \"%s\":\n%s" % (newfield, errmsg)))
def handleIPMissing(self, field):
+ newfield = string.replace(field, "_", "")
self.intf.messageWindow(_("Error With Data"),
- _("A value is required for the field \"%s\"." % (field,)))
+ _("A value is required for the field \"%s\"." % (newfield,)))
def handleBroadCastError(self):
self.intf.messageWindow(_("Error With Data"),
@@ -284,6 +286,7 @@ class NetworkWindow(InstallWindow):
tmpvals[t] = entrys[t].dehydrate()
except ipwidget.IPMissing, msg:
self.handleIPMissing(options[t][0])
+ valsgood = 0
break
except ipwidget.IPError, msg:
self.handleIPError(options[t][0], msg[0])