diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-12-27 21:16:01 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-12-27 21:16:01 +0000 |
commit | bceae6af244f85ff7961a55f3b3b114795e26e8d (patch) | |
tree | 162581d43a2e6c91ff58a677c46b0dcc7f69d8e7 /textw | |
parent | d250f352fd4f717ec659c4374670e3bad45ae402 (diff) | |
download | anaconda-bceae6af244f85ff7961a55f3b3b114795e26e8d.tar.gz anaconda-bceae6af244f85ff7961a55f3b3b114795e26e8d.tar.xz anaconda-bceae6af244f85ff7961a55f3b3b114795e26e8d.zip |
use messsageWindows instead of custom message boxes, so pass intf in
Diffstat (limited to 'textw')
-rw-r--r-- | textw/firewall_text.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/textw/firewall_text.py b/textw/firewall_text.py index c54c6eddd..0a2cb2a75 100644 --- a/textw/firewall_text.py +++ b/textw/firewall_text.py @@ -18,7 +18,8 @@ from constants_text import * from translate import _ class FirewallWindow: - def __call__(self, screen, network, firewall): + def __call__(self, screen, intf, network, firewall): + self.intf = intf bb = ButtonBar (screen, (TEXT_OK_BUTTON, (_("Customize"), "customize"), TEXT_BACK_BUTTON)) @@ -195,10 +196,9 @@ class FirewallWindow: pass if bad_token_found == 1: - pass - ButtonChoiceWindow(screen, _("Invalid Choice"), - _("Warning: %s is not a valid port." %token), - buttons = [ _("OK") ], width = 40) + self.intf.messageWindow(_("Invalid Choice"), + _("Warning: %s is not a " + "valid port.") %(token,)) screen.popWindow() else: firewall.portlist = portlist |