Merge commit 'dm/experimental' into test branch
authorschon <schon@dev03-server>
Tue, 15 Mar 2011 07:05:31 +0000 (16:05 +0900)
committerschon <schon@dev03-server>
Tue, 15 Mar 2011 07:05:31 +0000 (16:05 +0900)
Conflicts:
lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py
lib/python/Screens/SleepTimerEdit.py

18 files changed:
1  2 
RecordTimer.py
data/keymap.xml
lib/dvb/dvb.cpp
lib/dvb/frontend.cpp
lib/python/Plugins/Extensions/DVDBurn/Process.py
lib/python/Plugins/Extensions/MediaPlayer/plugin.py
lib/python/Plugins/SystemPlugins/CommonInterfaceAssignment/plugin.py
lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/plugin.py
lib/python/Plugins/SystemPlugins/OldSoftwareUpdate/plugin.py
lib/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py
lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py
lib/python/Plugins/SystemPlugins/Videomode/plugin.py
lib/python/Screens/AudioSelection.py
lib/python/Screens/ChannelSelection.py
lib/python/Screens/InfoBarGenerics.py
lib/python/Screens/PluginBrowser.py
lib/python/Screens/SleepTimerEdit.py
main/bsod.cpp

diff --cc RecordTimer.py
Simple merge
diff --cc data/keymap.xml
Simple merge
diff --cc lib/dvb/dvb.cpp
index fbca6f3,6f9a67f..61924ad
mode 100755,100644..100755
index b968d79,b3a0a17..dce5179
mode 100755,100644..100644
@@@ -921,17 -923,20 +923,20 @@@ class PluginManager(Screen, DreamInfoHa
                        self.close()
  
        def runExecuteFinished(self):
-               self.session.openWithCallback(self.ExecuteReboot, MessageBox, _("Install or remove finished.") +" "+_("Do you want to reboot your STB?"), MessageBox.TYPE_YESNO)
-       def ExecuteReboot(self, result):
-               if result is None:
-                       return
-               if result is False:
-                       self.reloadPluginlist()
+               self.reloadPluginlist()
+               restartRequired = plugins.restartRequired
+               if restartRequired:
 -                      self.session.openWithCallback(self.ExecuteReboot, MessageBox, _("Install or remove finished.") +" "+_("Do you want to reboot your Dreambox?"), MessageBox.TYPE_YESNO)
++                      self.session.openWithCallback(self.ExecuteReboot, MessageBox, _("Install or remove finished.") +" "+_("Do you want to reboot your STB?"), MessageBox.TYPE_YESNO)
+               else:
                        self.selectedFiles = []
                        self.detailsClosed(True)
+       def ExecuteReboot(self, result):
                if result:
                        quitMainloop(3)
+               else:
+                       self.selectedFiles = []
+                       self.detailsClosed(True)
  
        def reloadPluginlist(self):
                plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
@@@ -1287,15 -1292,17 +1292,17 @@@ class PluginDetails(Screen, DreamInfoHa
                        self.session.openWithCallback(self.runUpgradeFinished, Ipkg, cmdList = self.cmdList)
  
        def runUpgradeFinished(self):
-               self.session.openWithCallback(self.UpgradeReboot, MessageBox, _("Installation finished.") +" "+_("Do you want to reboot your STB?"), MessageBox.TYPE_YESNO)
-       def UpgradeReboot(self, result):
-               if result is None:
-                       return
-               if result is False:
+               self.reloadPluginlist()
+               restartRequired = plugins.restartRequired
+               if restartRequired:
 -                      self.session.openWithCallback(self.UpgradeReboot, MessageBox, _("Installation finished.") +" "+_("Do you want to reboot your Dreambox?"), MessageBox.TYPE_YESNO)
++                      self.session.openWithCallback(self.UpgradeReboot, MessageBox, _("Installation finished.") +" "+_("Do you want to reboot your STB?"), MessageBox.TYPE_YESNO)
+               else:
                        self.close(True)
+       def UpgradeReboot(self, result):
                if result:
                        quitMainloop(3)
+               else:
+                       self.close(True)
  
        def runRemove(self, result):
                if result:
@@@ -1375,7 -1374,7 +1374,7 @@@ class UpdatePlugin(Screen)
                                self.updating = True
                                self.activityTimer.start(100, False)
                                self.package.setText(_("Package list update"))
--                              self.status.setText(_("Upgrading Dreambox... Please wait"))
++                              self.status.setText(_("Upgrading STB... Please wait"))
                                self.ipkg.startCmd(IpkgComponent.CMD_UPDATE)
                        else:
                                self.package.setText(_("Your network is not working. Please try again."))
Simple merge
Simple merge
index e5c9260,61440d4..1305b62
mode 100755,100644..100755
@@@ -99,17 -99,13 +99,18 @@@ class SleepTimerEdit(Screen)
  
        def select(self):
                if self.status:
 -                      time = int(self["input"].getText())
 -                      config.SleepTimer.defaulttime.setValue(time)
 -                      config.SleepTimer.defaulttime.save()
 -                      config.SleepTimer.action.save()
 -                      config.SleepTimer.ask.save()
 -                      self.session.nav.SleepTimer.setSleepTime(time)
 -                      self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO)
 +#     ikseong
 +                      if self["input"].getText()=='':
 +                              self.session.nav.SleepTimer.clear()
 +                              self.session.openWithCallback(self.close, MessageBox, _("The sleep timer is invalid."), MessageBox.TYPE_INFO)
 +                      else:                           
 +                              time = int(self["input"].getText())
 +                              config.SleepTimer.defaulttime.setValue(time)
 +                              config.SleepTimer.defaulttime.save()
 +                              config.SleepTimer.action.save()
++                              config.SleepTimer.ask.save()
 +                              self.session.nav.SleepTimer.setSleepTime(time)
 +                              self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO)
                else:
                        self.session.nav.SleepTimer.clear()
                        self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been disabled."), MessageBox.TYPE_INFO)
diff --cc main/bsod.cpp
Simple merge