[PATCH] Number timezones starting with 1 (#859342)
Brian C. Lane
bcl at redhat.com
Wed Oct 17 17:04:51 UTC 2012
On Wed, Oct 17, 2012 at 02:27:54PM +0200, Martin Sivak wrote:
> ---
> 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
nonono, that's totally wrong. Everything should be numbered from 0 :)
But ack anyway.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20121017/adf6c952/attachment.sig>
More information about the anaconda-patches
mailing list