summaryrefslogtreecommitdiffstats
path: root/pyanaconda/ui/tui
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2012-09-28 11:44:47 -0700
committerJesse Keating <jkeating@redhat.com>2012-10-01 13:56:50 -0700
commit3cd9c0f430c1f2c23601f25a8c95ca2ed9bf8320 (patch)
tree31a9568fe280f75c854cfb746e8eadb9489b77a6 /pyanaconda/ui/tui
parent95b1406f9f23293dcf06def20eaf89171ca31848 (diff)
downloadanaconda-3cd9c0f430c1f2c23601f25a8c95ca2ed9bf8320.tar.gz
anaconda-3cd9c0f430c1f2c23601f25a8c95ca2ed9bf8320.tar.xz
anaconda-3cd9c0f430c1f2c23601f25a8c95ca2ed9bf8320.zip
Allow vncpassword spoke text to be configurable
Diffstat (limited to 'pyanaconda/ui/tui')
-rw-r--r--pyanaconda/ui/tui/spokes/askvnc.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pyanaconda/ui/tui/spokes/askvnc.py b/pyanaconda/ui/tui/spokes/askvnc.py
index fc13235d4..a3cf3c43a 100644
--- a/pyanaconda/ui/tui/spokes/askvnc.py
+++ b/pyanaconda/ui/tui/spokes/askvnc.py
@@ -94,9 +94,14 @@ class VNCPassSpoke(NormalTUISpoke):
title = _("VNC Password")
category = "vnc"
- def __init__(self, app, data, storage, payload, instclass):
+ def __init__(self, app, data, storage, payload, instclass, message=None):
NormalTUISpoke.__init__(self, app, data, storage, payload, instclass)
self._password = ""
+ if message:
+ self._message = message
+ else:
+ self._message = _("Please provide VNC password. You will have to type it twice. \n"
+ "Leave blank for no password")
@property
def indirect(self):
@@ -108,8 +113,7 @@ class VNCPassSpoke(NormalTUISpoke):
def refresh(self, args = None):
NormalTUISpoke.refresh(self, args)
- self._window += [TextWidget(_("Please provide VNC password. You will have to type it twice. \n" \
- "Leave blank for no password")), ""]
+ self._window += [TextWidget(self._message), ""]
return True