[PATCH] Number timezones starting with 1 (#859342)
Martin Sivak
msivak at redhat.com
Wed Oct 17 12:27:54 UTC 2012
---
pyanaconda/ui/tui/spokes/time.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/time.py b/pyanaconda/ui/tui/spokes/time.py
index 2cea1b8..cc26ec3 100644
--- a/pyanaconda/ui/tui/spokes/time.py
+++ b/pyanaconda/ui/tui/spokes/time.py
@@ -69,7 +69,7 @@ class TimeZoneSpoke(NormalTUISpoke):
displayed = [TextWidget(z) for z in self._regions]
def _prep(i, w):
- number = TextWidget("%2d)" % i)
+ number = TextWidget("%2d)" % (i + 1))
return ColumnWidget([(4, [number]), (None, [w])], 1)
# split zones to three columns
@@ -85,7 +85,7 @@ class TimeZoneSpoke(NormalTUISpoke):
def input(self, args, key):
try:
- keyid = int(key)
+ keyid = int(key) - 1
if args:
self._selection = "%s/%s" % (args, self._timezones[args][keyid])
self.apply()
--
1.7.11.4
More information about the anaconda-patches
mailing list