diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-07 18:54:53 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-07 18:54:53 +0000 |
| commit | dad7605fd87ac8f7fcda015e4f3978dfe536d020 (patch) | |
| tree | 12761ca9a40f0b7fa88d822dfa21caf6708c15aa /lib/python | |
| parent | 11191e49b6c976338265d026ae33477a1d97fb9b (diff) | |
| download | enigma2-dad7605fd87ac8f7fcda015e4f3978dfe536d020.tar.gz enigma2-dad7605fd87ac8f7fcda015e4f3978dfe536d020.zip | |
fix satconfig
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/NimManager.py | 19 | ||||
| -rw-r--r-- | lib/python/Screens/Satconfig.py | 2 |
2 files changed, 10 insertions, 11 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index 783288ec..7878b67b 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -212,14 +212,13 @@ class SecConfigure: # Committed Diseqc Command cdc = currLnb.commitedDiseqcCommand.value - c = [ - ("none", diseqcParam.SENDNO), - ("AA", diseqcParam.AA), - ("AB", diseqcParam.AB), - ("BA", diseqcParam.BA), - ("BB", diseqcParam.BB)] - - if cdc in c: + c = { "none": diseqcParam.SENDNO, + "AA": diseqcParam.AA, + "AB": diseqcParam.AB, + "BA": diseqcParam.BA, + "BB": diseqcParam.BB } + + if c.has_key(cdc): sec.setCommittedCommand(c[cdc]) else: sec.setCommittedCommand(long(cdc)) @@ -745,11 +744,11 @@ def InitNimManager(nimmgr): csw = [("none", _("None")), ("AA", _("AA")), ("AB", _("AB")), ("BA", _("BA")), ("BB", _("BB"))] for y in range(0, 16): csw.append((str(0xF0|y), "Input " + str(y+1))) - + ucsw = [("0", _("None"))] for y in range(1, 17): ucsw.append((str(y), "Input " + str(y))) - + nim.advanced.lnb = ConfigSubList() nim.advanced.lnb.append(ConfigDummy()) for x in range(1, 33): diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index 3930aaa3..b6e49112 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -169,7 +169,7 @@ class NimSetup(Screen, ConfigListScreen): { "ok": self.keySave, "cancel": self.keyCancel, - }, -1) + }, -2) self.nim = nimmanager.nimList()[slotid][1] self.nimConfig = config.Nims[self.nim.slotid] |
