diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-05-28 15:22:46 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-05-28 15:22:46 +0000 |
commit | 080fbabea1a5024e957eefbed8a51cea01a88ece (patch) | |
tree | 87c84715b11f0823c34c8e0af065ddb097479540 | |
parent | 96f3adb867fa91d4ff7b981c01dd6bce961e6dd3 (diff) | |
download | anaconda-080fbabea1a5024e957eefbed8a51cea01a88ece.tar.gz anaconda-080fbabea1a5024e957eefbed8a51cea01a88ece.tar.xz anaconda-080fbabea1a5024e957eefbed8a51cea01a88ece.zip |
if we don't find the object in the dict, try to use it as a method; better than nothing. also, redhat-config-keyboard integration bit
-rw-r--r-- | dispatch.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dispatch.py b/dispatch.py index 8cd2f5629..dc8523767 100644 --- a/dispatch.py +++ b/dispatch.py @@ -48,7 +48,7 @@ from network import networkDeviceCheck installSteps = [ ("welcome", ("id.configFileData",)), ("language", ("intf", "id.instLanguage")), - ("keyboard", ("id.instLanguage", "id.keyboard", "id.xconfig")), + ("keyboard", ("id.instLanguage.getDefaultKeyboard()", "id.keyboard", "id.xconfig")), ("mouse", ("id.mouse",)), ("installtype", ("dispatch", "id", "method", "intf")), ("findrootparts", findRootParts, ("intf", "id", "dir", "instPath")), @@ -235,7 +235,8 @@ class Dispatcher: obj = self for item in string.split(arg, '.'): if not obj.__dict__.has_key(item): - print "cannot find %s in %s" % (item, obj) + exec "obj = self.%s" %(arg,) + break obj = obj.__dict__[item] newArgs = newArgs + (obj,) |