blob: d3a25e778f1e48169be3a3618941e4feaac82372 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<wizard>
<step id="welcome" nextstep="nothingtoinstall">
<condition>
packagelist = self.fillPackagesList()
self.runWizard = (len(packagelist) > 0)
self.condition = self.runWizard
</condition>
<text value="You can choose, what you want to install..." />
<!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
<config type="dynamic" source="getConfigList" evaluation="selectionMade" />
<code pos="after">
self.disableKeys = True
</code>
</step>
<step id="nopackages" nextstep="install">
<condition>
self.condition = self.runWizard or not self.silent
</condition>
<text value="The package doesn't contain anything." />
</step>
<step id="nothingtoinstall" nextstep="install">
<condition>
if self.runWizard:
self.condition = True
for x in self.packagesConfig:
if x.value:
self.condition = False
break
else:
self.condition = False
</condition>
<text value="You chose not to install anything. Please press OK finish the install wizard." />
<!--list type="dynamic" source="listDefaults" evaluation="selectionMade" /-->
<code>
self.disableKeys = False
</code>
<code pos="after">
self.markDone()
</code>
</step>
<step id="install">
<condition>
self.condition = False
if self.runWizard:
for x in self.packagesConfig:
if x.value:
self.condition = True
break
</condition>
<code>
self.disableKeys = True
</code>
<code>
#print "len of packageslist", len(self.packageslist)
#if (len(self.packageslist) == 1):
#self.installPackage(0)
</code>
<text value="Installing package content... Please wait..." />
</step>
</wizard>
|