p.updateIcon(path)
self.addPlugin(p);
else:
+ open(path + "__init__.py", "w").close()
self.readPluginList(path, modules + [x], depth - 1)
def getPlugins(self, where):
for p in self.plugins.get(x, [ ]):
res.append(p)
return res
+
+ def clearPluginList(self):
+ self.pluginList = []
def shutdown(self):
for p in self.pluginList[:]:
self.container.execute("ipkg update")
def installFinished(self):
+ plugins.clearPluginList()
plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
+ self.close()
def runFinished(self, retval):
if self.run == 0:
self.pluginlist.append(plugin)
def updateList(self):
+ self.list = []
for x in self.pluginlist:
plugin = PluginDescriptor(name = x[3], description = x[2])
self.list.append(PluginEntryComponent(plugin))