[PATCH 3/6] Allow vncpassword spoke text to be configurable
Jesse Keating
jkeating at redhat.com
Fri Sep 28 19:17:44 UTC 2012
---
pyanaconda/ui/tui/spokes/askvnc.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/askvnc.py b/pyanaconda/ui/tui/spokes/askvnc.py
index fc13235..a3cf3c4 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
--
1.7.11.4
More information about the anaconda-patches
mailing list