"red": self.delete,
"green": self.download
})
-
+ self.onExecBegin.append(self.checkWarnings)
+
+ def checkWarnings(self):
+ if len(plugins.warnings):
+ text = _("Some plugins are not available:\n")
+ for (pluginname, error) in plugins.warnings:
+ text += _("%s (%s)\n") % (pluginname, error)
+ plugins.resetWarnings()
+ self.session.open(MessageBox, text = text, type = MessageBox.TYPE_WARNING)
+
def save(self):
#self.close()
self.run()
self.container.appClosed.get().append(self.runFinished)
self.container.dataAvail.get().append(self.dataAvail)
self.onLayoutFinish.append(self.startRun)
- self.onShown.append(self.setTitle)
+ self.onShown.append(self.setWindowTitle)
self.list = []
self["list"] = PluginList(self.list)
def runInstall(self, val):
if val:
if self.type == self.DOWNLOAD:
- self.session.openWithCallback(self.installFinished, Console, ["ipkg install " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
+ self.session.openWithCallback(self.installFinished, Console, cmdlist = ["ipkg install " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
elif self.type == self.REMOVE:
- self.session.openWithCallback(self.installFinished, Console, ["ipkg remove " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
+ self.session.openWithCallback(self.installFinished, Console, cmdlist = ["ipkg remove " + "enigma2-plugin-" + self["list"].l.getCurrentSelection()[0].name])
- def setTitle(self):
+ def setWindowTitle(self):
if self.type == self.DOWNLOAD:
- self.session.currentDialog.instance.setTitle(_("Downloadable new plugins"))
+ self.setTitle(_("Downloadable new plugins"))
elif self.type == self.REMOVE:
- self.session.currentDialog.instance.setTitle(_("Remove plugins"))
+ self.setTitle(_("Remove plugins"))
def startRun(self):
self["list"].instance.hide()