X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FCrashlogAutoSubmit%2Fplugin.py;h=e45778acfd3ad84b13ab616327a610f8050cd5ae;hp=92c16289ca900efd52b27de09772f8978c4ca816;hb=83d2819a49d7182cb8cee41caeb3c20d9187aba5;hpb=d9744b561aa9958312b4a33c83dc99f52d21a6b4 diff --git a/lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/plugin.py b/lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/plugin.py old mode 100755 new mode 100644 index 92c1628..e45778a --- a/lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/plugin.py +++ b/lib/python/Plugins/SystemPlugins/CrashlogAutoSubmit/plugin.py @@ -176,7 +176,7 @@ class CrashlogAutoSubmitConfiguration(Screen, ConfigListScreen): self.enableVKeyIcon() self.showKeypad() elif current == self.AnonCrashlogEntry: - self["status"].setText(_("Adds enigma2 settings and dreambox model informations like SN, rev... if enabled.")) + self["status"].setText(_("Adds enigma2 settings and STB model informations like SN, rev... if enabled.")) self.disableVKeyIcon() elif current == self.NetworkEntry: self["status"].setText(_("Adds network configuration if enabled.")) @@ -333,15 +333,15 @@ def mxServerFound(mxServer,session): if crashlog.startswith("enigma2_crash_") and crashlog.endswith(".log"): print "[CrashlogAutoSubmit] - found crashlog: ",os.path.basename(crashlog) crashLogFilelist.append('/media/hdd/' + crashlog) - - if len(crashLogFilelist): - if config.plugins.crashlogautosubmit.sendmail.value == "send": - Notifications.AddNotificationWithCallback(handleAnswer, ChoiceBox, title=_("Crashlogs found!\nSend them to Dream Multimedia?"), list = list) - elif config.plugins.crashlogautosubmit.sendmail.value == "send_always": - send_mail() - else: - print "[CrashlogAutoSubmit] - no crashlogs found." - +# if len(crashLogFilelist): +# if config.plugins.crashlogautosubmit.sendmail.value == "send": +# session.openWithCallback(handleAnswer, ChoiceBox, title=_("Crashlogs found!\nSend them to Dream Multimedia ?"), list = list) +# elif config.plugins.crashlogautosubmit.sendmail.value == "send_always": +# send_mail() +# else: +# print "[CrashlogAutoSubmit] - no crashlogs found." +# + print "block to handle Crashlogs " def getMailExchange(host): print "[CrashlogAutoSubmit] - getMailExchange" @@ -421,6 +421,6 @@ def selSetup(menuid, **kwargs): def Plugins(**kwargs): - return [PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], fnc = autostart), - PluginDescriptor(name=_("CrashlogAutoSubmit"), description=_("CrashlogAutoSubmit settings"),where=PluginDescriptor.WHERE_MENU, fnc=selSetup)] + return [PluginDescriptor(where = [PluginDescriptor.WHERE_SESSIONSTART, PluginDescriptor.WHERE_AUTOSTART], needsRestart = False, fnc = autostart), + PluginDescriptor(name=_("CrashlogAutoSubmit"), description=_("CrashlogAutoSubmit settings"),where=PluginDescriptor.WHERE_MENU, needsRestart = False, fnc=selSetup)]