Gentoo Archives: gentoo-commits

From: Wiktor W Brodlo <wiktor@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/anaconda:master commit in: iw/
Date: Wed, 03 Aug 2011 09:16:32
Message-Id: e5ff87bcbed1531faddf938df24981e5a79fbfc8.wiktor@gentoo
1 commit: e5ff87bcbed1531faddf938df24981e5a79fbfc8
2 Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net>
3 AuthorDate: Wed Aug 3 09:15:39 2011 +0000
4 Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net>
5 CommitDate: Wed Aug 3 09:15:39 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=e5ff87bc
7
8 iw/timezone_gui.py: fix custom_widegt_handler
9
10 ---
11 iw/timezone_gui.py | 11 +++++++----
12 1 files changed, 7 insertions(+), 4 deletions(-)
13
14 diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py
15 index 202719c..ecac31e 100644
16 --- a/iw/timezone_gui.py
17 +++ b/iw/timezone_gui.py
18 @@ -64,11 +64,14 @@ class TimezoneWindow(InstallWindow):
19
20 def custom_widget_handler(self, xml, function_name, widget_name, str1, str2,
21 int1, int2):
22 - if hasattr(self, function_name):
23 - handler = getattr(self, function_name)
24 - return handler(str1, str2, int1, int2)
25 + if isinstance(function_name, string):
26 + if hasattr(self, function_name):
27 + handler = getattr(self, function_name)
28 + return handler(str1, str2, int1, int2)
29 + else:
30 + # Lame.
31 + return gtk.Label()
32 else:
33 - # Lame.
34 return gtk.Label()
35
36 def timezone_widget_create (self, str1, str2, int1, int2):