1 |
commit: 755b077c183da69efeef110d90c4d07ce18ba89e |
2 |
Author: wiktor w brodlo <wiktor <AT> brodlo <DOT> net> |
3 |
AuthorDate: Wed Aug 3 09:30:57 2011 +0000 |
4 |
Commit: Wiktor W Brodlo <wiktor <AT> brodlo <DOT> net> |
5 |
CommitDate: Wed Aug 3 09:30:57 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/anaconda.git;a=commit;h=755b077c |
7 |
|
8 |
iw/timezone_gui.py: enhance custom_widget_handler |
9 |
|
10 |
--- |
11 |
iw/timezone_gui.py | 4 ++-- |
12 |
1 files changed, 2 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py |
15 |
index ecac31e..e61dba3 100644 |
16 |
--- a/iw/timezone_gui.py |
17 |
+++ b/iw/timezone_gui.py |
18 |
@@ -64,14 +64,14 @@ class TimezoneWindow(InstallWindow): |
19 |
|
20 |
def custom_widget_handler(self, xml, function_name, widget_name, str1, str2, |
21 |
int1, int2): |
22 |
- if isinstance(function_name, string): |
23 |
+ try: |
24 |
if hasattr(self, function_name): |
25 |
handler = getattr(self, function_name) |
26 |
return handler(str1, str2, int1, int2) |
27 |
else: |
28 |
# Lame. |
29 |
return gtk.Label() |
30 |
- else: |
31 |
+ except: |
32 |
return gtk.Label() |
33 |
|
34 |
def timezone_widget_create (self, str1, str2, int1, int2): |