aboutsummaryrefslogtreecommitdiff
path: root/iw
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-08-03 09:15:39 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-08-03 09:15:39 +0000
commite5ff87bcbed1531faddf938df24981e5a79fbfc8 (patch)
treec4864abced4f7ac66c4bd62b28d3840ef3fc44b6 /iw
parentiw/timezone_gui.py: import gui (diff)
downloadanaconda-e5ff87bcbed1531faddf938df24981e5a79fbfc8.tar.gz
anaconda-e5ff87bcbed1531faddf938df24981e5a79fbfc8.tar.bz2
anaconda-e5ff87bcbed1531faddf938df24981e5a79fbfc8.zip
iw/timezone_gui.py: fix custom_widegt_handler
Diffstat (limited to 'iw')
-rw-r--r--iw/timezone_gui.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/iw/timezone_gui.py b/iw/timezone_gui.py
index 202719c..ecac31e 100644
--- a/iw/timezone_gui.py
+++ b/iw/timezone_gui.py
@@ -64,11 +64,14 @@ class TimezoneWindow(InstallWindow):
def custom_widget_handler(self, xml, function_name, widget_name, str1, str2,
int1, int2):
- if hasattr(self, function_name):
- handler = getattr(self, function_name)
- return handler(str1, str2, int1, int2)
+ if isinstance(function_name, string):
+ if hasattr(self, function_name):
+ handler = getattr(self, function_name)
+ return handler(str1, str2, int1, int2)
+ else:
+ # Lame.
+ return gtk.Label()
else:
- # Lame.
return gtk.Label()
def timezone_widget_create (self, str1, str2, int1, int2):