add DreamPackageWizard
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 17 May 2008 22:52:47 +0000 (22:52 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 17 May 2008 22:52:47 +0000 (22:52 +0000)
data/dreampackagewizard.xml [new file with mode: 0644]

diff --git a/data/dreampackagewizard.xml b/data/dreampackagewizard.xml
new file mode 100644 (file)
index 0000000..3a51542
--- /dev/null
@@ -0,0 +1,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>
\ No newline at end of file