<step id="nima">
<condition>
from Components.NimManager import nimmanager
-self.condition = nimmanager.getNimType(0) != nimmanager.nimType["empty/unknown"]
+self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty
</condition>
<text value="Use the left and right buttons to change an option.\n\nPlease set up tuner A" />
<config screen="NimSetup" module="Satconfig" args="0" type="ConfigList" />
<step id="nimb">
<condition>
from Components.NimManager import nimmanager
-self.condition = nimmanager.getNimType(1) != nimmanager.nimType["empty/unknown"]
+self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty
</condition>
<text value="Please set up tuner B" />
<config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
<step id="nimc">
<condition>
from Components.NimManager import nimmanager
-self.condition = nimmanager.getNimType(2) != nimmanager.nimType["empty/unknown"]
+self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty
</condition>
- <text value="Please set up tuner B" />
- <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
+ <text value="Please set up tuner C" />
+ <config screen="NimSetup" module="Satconfig" args="2" type="ConfigList" />
<code>
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
<step id="nimd">
<condition>
from Components.NimManager import nimmanager
-self.condition = nimmanager.getNimType(3) != nimmanager.nimType["empty/unknown"]
+self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty
</condition>
- <text value="Please set up tuner B" />
- <config screen="NimSetup" module="Satconfig" args="1" type="ConfigList" />
+ <text value="Please set up tuner D" />
+ <config screen="NimSetup" module="Satconfig" args="3" type="ConfigList" />
<code>
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
</list>
</step>
<step id="parentalcontrol">
- <text value="Do you want to enable the parental control feature or your dreambox?" />
+ <text value="Do you want to enable the parental control feature on your dreambox?" />
<list>
<listentry caption="Yes" step="parentalsetup" />
<listentry caption="No" step="end" />
</list>
<code pos="after">
-if self["list"].getSelectedIndex() == 0:
+if self["list"].index == 0:
config.ParentalControl.configured.value = True
else:
config.ParentalControl.configured.value = False
</list>
<code pos="after">
from ParentalControlSetup import ParentalControlChangePin
-if self["list"].getSelectedIndex() == 0:
+if self["list"].index == 0:
self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
</code>
</step>