Merge branch 'bug_617_default_favlist_handling_fix'
[vuplus_dvbapp] / data / defaultsatlists.xml
1 <wizard>
2         <step id="startdefaultlists" nextstep="nothingtoinstall">
3                 <condition>
4 packagelist = self.fillPackagesList()
5 self.runWizard = (len(packagelist) > 0)
6 self.condition = self.runWizard
7                 </condition>
8                 <text value="Please choose the default services lists you want to install." />
9                 <!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
10                 <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
11                 <code pos="after">
12 self.disableKeys = True
13                 </code>
14         </step>
15         <step id="nopackages" nextstep="finisheddefaultsatlists">
16                 <text value="There are no default services lists in your image." />
17         </step>
18         
19         <!--step id="nothingtoinstall" nextstep="finisheddefaultsatlists"-->
20         <step id="nothingtoinstall" nextstep="scanquestion">
21                 <condition>
22 if self.runWizard:
23         self.condition = True
24         for x in self.packagesConfig:
25                 if x.value:
26                         self.condition = False
27                         break
28 else:
29         self.condition = False
30                 </condition>
31                 <text value="You chose not to install any default services lists." />
32                 <!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
33                 <code>
34 self.disableKeys = False
35                 </code>
36         </step>
37         
38         <step id="install" nextstep="finisheddefaultsatlists">
39                 <condition>
40 self.condition = False
41 if self.runWizard:
42         for x in self.packagesConfig:
43                 if x.value:
44                         self.condition = True
45                         break 
46                 </condition>
47                 <code>
48 self.disableKeys = True                 
49 self.installPackages(self.indexList)
50                 </code>
51                 <text value="Installing default sat lists... Please wait..." />
52         </step>
53         
54         <step id="finisheddefaultsatlists">
55                 <condition>
56 self.markDone()
57 self.condition = False
58                 </condition>
59         </step>
60 </wizard>