remove duplicate code, add 'quit and delete movie'-option (experts only), move import...
[enigma2.git] / lib / python / Screens / ImageWizard.py
index f96ddadc37b26c47b151fa8d469512dd1ef77cf1..faf6120bfae5482f20393e0c6bc5cf89d525a84b 100644 (file)
@@ -1,9 +1,5 @@
 from Wizard import Wizard, wizardManager
 
-from Components.config import configElementBoolean, config
-from Components.Pixmap import *
-
-from LanguageSelection import LanguageSelection
 from Tools.Directories import fileExists
 
 import os
@@ -23,28 +19,20 @@ else:
        backupAvailable = 1
 
 class ImageWizard(Wizard):
-       skin = """
-               <screen position="0,0" size="720,576" title="Welcome..." flags="wfNoBorder">
-                       <widget name="text" position="50,100" size="440,250" font="Regular;23" />
-                       <widget name="list" position="50,350" zPosition="1" size="440,200" />
-                       <widget name="config" position="50,350" zPosition="1" size="440,200" transparent="1" scrollbarMode="showOnDemand" />
-               </screen>"""
-       
        def __init__(self, session):
                self.xmlfile = "imagewizard.xml"
-               
                Wizard.__init__(self, session, showSteps=False, showStepSlider=False, showList=True, showConfig=True)
-               
+
        def markDone(self):
                pass
 
-wizardManager.registerWizard(ImageWizard, backupAvailable)
+wizardManager.registerWizard(ImageWizard, backupAvailable, priority = 10)
 
 def doBackup(path):
        os.system('tar cvpf ' + path + backupfile + ' /etc/enigma2')
 
 def doRestore(path):
-       os.system('cd / && tar xvpf ' + path + backupfile + ' etc/enigma2')
+       os.system('cd / && /bin/tar xvpf ' + path + backupfile)
        
 
                
\ No newline at end of file