[PATCH] Add _handleIPMissing to NetworkConfigurator class.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Caught by pychecker.
---
 iw/netconfig_dialog.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/iw/netconfig_dialog.py b/iw/netconfig_dialog.py
index a3f1626..146be11 100644
--- a/iw/netconfig_dialog.py
+++ b/iw/netconfig_dialog.py
@@ -131,6 +131,14 @@ class NetworkConfigurator:
     def destroy(self):
         self.window.destroy()
 
+    def _handleIPMissing(screen, field):
+        d = gtk.MessageDialog(_("Error With Data"), 0, gtk.MESSAGE_ERROR,
+                              gtk.BUTTONS_OK,
+                              _("A value is required for the field %s.")
+                              % (field,))
+        d.run()
+        d.destroy()
+
     def _handleIPError(self, field, errmsg):
         d = gtk.MessageDialog(_("Error With Data"), 0, gtk.MESSAGE_ERROR,
                               gtk.BUTTONS_OK,
-- 
1.6.0.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux