summaryrefslogtreecommitdiffstats
path: root/textw/userauth_text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
committerChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
commit9e1a444c46abcfc29c2e44ffd102fcc1eda6289e (patch)
treefc10e993fe6c8292fbd0cb57fb6ad4135b0a8fad /textw/userauth_text.py
parent2d90bc12dcc682a7f0ff68e599cbb81a34a0b4a3 (diff)
downloadanaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.gz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.xz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.zip
Make all UI steps use anaconda class. Add system-config-keyboard shim.
Diffstat (limited to 'textw/userauth_text.py')
-rw-r--r--textw/userauth_text.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/textw/userauth_text.py b/textw/userauth_text.py
index f2266680a..c29b44a1e 100644
--- a/textw/userauth_text.py
+++ b/textw/userauth_text.py
@@ -23,7 +23,7 @@ def has_bad_chars(pw):
return 0
class RootPasswordWindow:
- def __call__ (self, screen, intf, rootPw):
+ def __call__ (self, screen, anaconda):
toplevel = GridFormHelp (screen, _("Root Password"), "rootpw", 1, 3)
toplevel.add (TextboxReflowed(37, _("Pick a root password. You must "
@@ -33,11 +33,11 @@ class RootPasswordWindow:
"root password is a critical part "
"of system security!")), 0, 0, (0, 0, 0, 1))
- if rootPw["isCrypted"]:
- rootPw["password"] = ""
+ if anaconda.id.rootPassword["isCrypted"]:
+ anaconda.id.rootPassword["password"] = ""
- entry1 = Entry (24, password = 1, text = rootPw["password"])
- entry2 = Entry (24, password = 1, text = rootPw["password"])
+ entry1 = Entry (24, password = 1, text = anaconda.id.rootPassword["password"])
+ entry2 = Entry (24, password = 1, text = anaconda.id.rootPassword["password"])
passgrid = Grid (2, 2)
passgrid.setField (Label (_("Password:")), 0, 0, (0, 0, 1, 0), anchorLeft = 1)
passgrid.setField (Label (_("Password (confirm):")), 0, 1, (0, 0, 1, 0), anchorLeft = 1)
@@ -77,5 +77,5 @@ class RootPasswordWindow:
entry2.set ("")
screen.popWindow()
- rootPw["password"] = entry1.value()
+ anaconda.id.rootPassword["password"] = entry1.value()
return INSTALL_OK