aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-16 14:37:52 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-16 14:37:52 +0000
commitfd238ef1077c33641388904b3c8816ac2b534188 (patch)
treeed46acd67df5b962259e2f93699d79c351a82764 /lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
parent46e10a85307eab4c82203a666561f5a733381b7e (diff)
downloadenigma2-fd238ef1077c33641388904b3c8816ac2b534188.tar.gz
enigma2-fd238ef1077c33641388904b3c8816ac2b534188.zip
remove full /etc backup option and change the position of the green and red button to follow the positions of the remote control (on
behalf of sat-man) ----------------------------------------------------------------------
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py')
-rw-r--r--lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py b/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
index 89f979fe..9ff8c05d 100644
--- a/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/ConfigurationBackup/plugin.py
@@ -33,10 +33,10 @@ class BackupSetup(Screen):
skin = """
<screen position="135,144" size="450,300" title="Backup and Restore" >
<widget name="config" position="10,10" size="430,240" />
- <widget name="ok" position="10,255" size="100,40" pixmap="~/green.png" transparent="1" alphatest="on" />
- <widget name="oktext" position="0,0" size="0,0" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" foregroundColor="black" />
- <widget name="cancel" position="120,255" size="100,40" pixmap="~/red.png" transparent="1" alphatest="on" />
+ <widget name="cancel" position="10,255" size="100,40" pixmap="~/red.png" transparent="1" alphatest="on" />
<widget name="canceltext" position="0,0" size="0,0" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" foregroundColor="black" />
+ <widget name="ok" position="120,255" size="100,40" pixmap="~/green.png" transparent="1" alphatest="on" />
+ <widget name="oktext" position="0,0" size="0,0" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" foregroundColor="black" />
<widget name="restore" position="230,255" size="100,40" pixmap="~/yellow.png" transparent="1" alphatest="on" />
<widget name="restoretext" position="0,0" size="0,0" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" foregroundColor="black" />
<widget name="backup" position="340,255" size="100,40" pixmap="~/blue.png" transparent="1" alphatest="on" />
@@ -104,7 +104,7 @@ class BackupSetup(Screen):
self.list = [ ]
self["config"] = ConfigList(self.list)
self.backup = ConfigSubsection()
- self.backup.type = ConfigSelection(choices = [("full", _("full /etc directory")), ("settings", _("only /etc/enigma2 directory")), ("var", _("/var directory")), ("skin", _("/usr/share/enigma2 directory"))], default="settings")
+ self.backup.type = ConfigSelection(choices = [("settings", _("only /etc/enigma2 directory")), ("var", _("/var directory")), ("skin", _("/usr/share/enigma2 directory"))], default="settings")
self.backup.location = ConfigSelection(choices = [("usb", _("USB Stick")), ("cf", _("CF Drive")), ("hdd", _("Harddisk"))])
self.list.append(getConfigListEntry(_("Backup Mode"), self.backup.type))
self.list.append(getConfigListEntry(_("Backup Location"), self.backup.location))
@@ -130,10 +130,7 @@ class BackupSetup(Screen):
d = localtime()
dt = date(d.tm_year, d.tm_mon, d.tm_mday)
self.path = BackupPath[self.backup.location.value]
- if self.backup.type.value == "full":
- print "Backup Mode: Full"
- self.session.open(Console, title = "Backup running", cmdlist = ["tar -czvf " + self.path + "/" + str(dt) + "_full_backup.tar.gz /etc/"])
- elif self.backup.type.value == "settings":
+ if self.backup.type.value == "settings":
print "Backup Mode: Settings"
self.session.open(Console, title = "Backup running", cmdlist = ["tar -czvf " + self.path + "/" + str(dt) + "_settings_backup.tar.gz /etc/enigma2/"])
elif self.backup.type.value == "var":