summaryrefslogtreecommitdiffstats
path: root/textw/timezone_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/timezone_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/timezone_text.py')
-rw-r--r--textw/timezone_text.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/textw/timezone_text.py b/textw/timezone_text.py
index ba11e0e1a..ee6f10cc0 100644
--- a/textw/timezone_text.py
+++ b/textw/timezone_text.py
@@ -1,7 +1,7 @@
#
# timezone_text.py: text mode timezone selection dialog
#
-# Copyright 2000-2002 Red Hat, Inc.
+# Copyright 2000-2006 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -61,11 +61,11 @@ class TimezoneWindow:
def currentTime(self):
return "Current time: " + strftime("%X %Z", localtime(time()))
- def __call__(self, screen, instLang, timezone):
+ def __call__(self, screen, anaconda):
timezones = self.getTimezoneList()
- (default, asUtc, asArc) = timezone.getTimezoneInfo()
+ (default, asUtc, asArc) = anaconda.id.timezone.getTimezoneInfo()
if not default:
- default = instLang.getDefaultTimeZone()
+ default = anaconda.id.instLanguage.getDefaultTimeZone()
bb = ButtonBar(screen, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON])
t = TextboxReflowed(30,
@@ -119,7 +119,7 @@ class TimezoneWindow:
break
screen.popWindow()
- timezone.setTimezoneInfo(self.l.current(), asUtc = self.c.selected())
+ anaconda.id.timezone.setTimezoneInfo(self.l.current(), asUtc = self.c.selected())
return INSTALL_OK