2 <step id="restorequestion">
4 from Components.config import config
5 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkConfigBackup
6 self.backuppath = checkConfigBackup()
7 self.condition = (self.backuppath is not None and config.misc.firstrun.value)
9 <text value="Do you want to restore your settings?" />
10 <short_title value="Restore"/>
12 <listentry caption="Yes, restore the settings now" step="restore" />
13 <listentry caption="No, just start my dreambox" step="end" />
16 self.clearSelectedKeys()
22 <text value="Welcome to the Image upgrade wizard. The wizard will assist you in upgrading the firmware of your Dreambox by providing a backup facility for your current settings and a short explanation of how to upgrade your firmware." />
23 <short_title value="Upgrade"/>
25 <listentry caption="OK, guide me through the upgrade process" step="backupquestion" />
26 <listentry caption="Exit the wizard" step="end" />
30 <step id="backupquestion">
31 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
32 <short_title value="Backup settings"/>
34 <listentry caption="Yes, backup my settings!" step="backupwhere" />
35 <listentry caption="No backup needed" step="upgrade" />
39 <step id="backupwhere" nextstep="backup">
40 <text value="Where do you want to backup your settings?" />
41 <short_title value="Location"/>
42 <list type="dynamic" source="listDevices" evaluation="deviceSelectionMade" onselect="deviceSelectionMoved" />
45 <step id="backup" nextstep="backupresult">
46 <text value="You have chosen to backup your settings. Please press OK to start the backup now." />
47 <short_title value="Backup now"/>
48 <config screen="BackupScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
49 <code pos="after" async="yes">
50 self.currStep = self.getStepWithID('backupresult')
55 <step id="backupresult" nextstep="upgrade">
57 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
58 self.backuppath = checkBackupFile()
59 self.condition = (self.backuppath is True)
61 <text value="Your backup succeeded. We will now continue to explain the further upgrade process." />
62 <short_title value="Success"/>
65 <step id="backupresult" nextstep="backupwhere">
67 from Plugins.SystemPlugins.SoftwareManager.ImageWizard import checkBackupFile
68 self.backuppath = checkBackupFile()
69 self.condition = (self.backuppath is False)
71 <text value="The backup failed. Please choose a different backup location." />
72 <short_title value="Failed"/>
75 <step id="restore" nextstep="backupresult">
76 <text value="You have chosen to restore your settings. Enigma2 will restart after restore. Please press OK to start the restore now." />
77 <short_title value="Restore"/>
78 <config screen="RestoreScreen" module="Plugins.SystemPlugins.SoftwareManager.BackupRestore" type="ConfigList" />
81 <step id="upgradehow">
82 <text value="The wizard can backup your current settings. Do you want to do a backup now?" />
84 <listentry caption="Install a new image with your web browser" step="upgrade" />
85 <listentry caption="Install a new image with a USB stick" step="upgradeUSB" />
90 <text value="You need a PC connected to your dreambox. If you need further instructions, please visit the website http://www.dm7025.de.\nYour dreambox will now be halted. After you have performed the update instructions from the website, your new firmware will ask you to restore your settings." />
92 <listentry caption="Yes, perform a shutdown now." step="shutdown" />
93 <listentry caption="No, do nothing." step="end" />
97 <step id="shutdown" nextstep="shutdown">
98 <short_title value="Shutdown"/>
100 from enigma import quitMainloop
103 <text value="Your dreambox is shutting down. Please stand by..." />
106 <step id="end" laststep="true">
108 self.condition = self.isLastWizard
110 <text value="The wizard is finished now." />