move installPackage call one wizard step to properly update the wizard texts
[enigma2.git] / data / defaultsatlists.xml
1 <wizard>
2         <step id="welcome" 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="install">
16                 <text value="There are no default services lists in your image." />
17         </step>
18         
19         <step id="nothingtoinstall" nextstep="install">
20                 <condition>
21 if self.runWizard:
22         self.condition = True
23         for x in self.packagesConfig:
24                 if x.value:
25                         self.condition = False
26                         break
27 else:
28         self.condition = False
29                 </condition>
30                 <text value="You chose not to install any default services lists." />
31                 <!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
32                 <code>
33 self.disableKeys = False
34                 </code>
35                 <code pos="after">
36 self.markDone()
37                 </code>
38         </step>
39         
40         <step id="install">
41                 <condition>
42 self.condition = False
43 if self.runWizard:
44         for x in self.packagesConfig:
45                 if x.value:
46                         self.condition = True
47                         break 
48                 </condition>
49                 <code>
50 self.disableKeys = True                 
51 self.installPackages(self.indexList)
52                 </code>
53                 <code>
54 #print "len of packageslist", len(self.packageslist)
55 #if (len(self.packageslist) == 1):
56         #self.installPackage(0)
57                 </code>
58                 <text value="Installing default sat lists... Please wait..." />
59         </step>
60 </wizard>