From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QoXZ1-0007Z4-Q4 for garchives@archives.gentoo.org; Wed, 03 Aug 2011 09:16:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AA0721C1E3; Wed, 3 Aug 2011 09:16:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CB1E21C1E3 for ; Wed, 3 Aug 2011 09:16:14 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC7881B4031 for ; Wed, 3 Aug 2011 09:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 24CAB8003C for ; Wed, 3 Aug 2011 09:16:13 +0000 (UTC) From: "Wiktor W Brodlo" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wiktor W Brodlo" Message-ID: Subject: [gentoo-commits] proj/anaconda:master commit in: iw/ X-VCS-Repository: proj/anaconda X-VCS-Files: iw/timezone_gui.py X-VCS-Directories: iw/ X-VCS-Committer: wiktor X-VCS-Committer-Name: Wiktor W Brodlo X-VCS-Revision: e5ff87bcbed1531faddf938df24981e5a79fbfc8 Date: Wed, 3 Aug 2011 09:16:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5b8a4a67f7c4a0b7e670e7d32f2a39b0 commit: e5ff87bcbed1531faddf938df24981e5a79fbfc8 Author: wiktor w brodlo brodlo net> AuthorDate: Wed Aug 3 09:15:39 2011 +0000 Commit: Wiktor W Brodlo brodlo net> CommitDate: Wed Aug 3 09:15:39 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/anaconda.git;= a=3Dcommit;h=3De5ff87bc iw/timezone_gui.py: fix custom_widegt_handler --- iw/timezone_gui.py | 11 +++++++---- 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): =20 def custom_widget_handler(self, xml, function_name, widget_name, str= 1, str2, int1, int2): - if hasattr(self, function_name): - handler =3D getattr(self, function_name) - return handler(str1, str2, int1, int2) + if isinstance(function_name, string): + if hasattr(self, function_name): + handler =3D getattr(self, function_name) + return handler(str1, str2, int1, int2) + else: + # Lame. + return gtk.Label() else: - # Lame. return gtk.Label() =20 def timezone_widget_create (self, str1, str2, int1, int2):