On Mon, Nov 03, 2008 at 03:38:55PM +0100, Hans de Goede wrote: > iw/netconfig_dialog.py:176: No class attribute (_handleIPMissing) found > iw/netconfig_dialog.py:193: No class attribute (_handleIPMissing) found > iw/netconfig_dialog.py:201: No class attribute (_handleIPMissing) found For whatever reason, _handleIPMissing() in netconfig_dialog.py was, well, missing. It's in the equivalent textw file, so copied the dialog strings from there and made a gtk function here to pop up the message about missing information. 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, -- David Cantrell <dcantrell@xxxxxxxxxx> Red Hat / Honolulu, HI
Attachment:
pgp9JGI9f6JDR.pgp
Description: PGP signature
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list