summaryrefslogtreecommitdiff
path: root/portato/plugin.py
diff options
context:
space:
mode:
authornecoro <>2007-07-20 07:46:44 +0000
committernecoro <>2007-07-20 07:46:44 +0000
commit3fb2546a1b528c24168877813a49725094c022cc (patch)
tree32036c3a9dc1971269e04407c9d8b0f30e434b49 /portato/plugin.py
parent9cb047b6c35cddd624ffde4e3b16253a269366ba (diff)
downloadportato-3fb2546a1b528c24168877813a49725094c022cc.tar.gz
portato-3fb2546a1b528c24168877813a49725094c022cc.tar.bz2
portato-3fb2546a1b528c24168877813a49725094c022cc.zip
new Plugin Scheme
Diffstat (limited to 'portato/plugin.py')
-rw-r--r--portato/plugin.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/portato/plugin.py b/portato/plugin.py
index 30a8c07..1aa521a 100644
--- a/portato/plugin.py
+++ b/portato/plugin.py
@@ -371,19 +371,18 @@ class PluginQueue:
elif frontendOK is None: # do not make negative if we already have a positive
frontendOK = False
- if frontendOK is None or frontendOK is True:
+ if frontendOK is None or frontendOK == True:
plugin = Plugin(p, elem.getElementsByTagName("name")[0], elem.getElementsByTagName("author")[0])
- plugin.parse_hooks(elem.getElementsByTagName("hook")[0])
+ plugin.parse_hooks(elem.getElementsByTagName("hooks")[0])
plugin.set_import(elem.getElementsByTagName("import"))
plugin.parse_menus(elem.getElementsByTagName("menu"))
plugin.parse_options(elem.getElementsByTagName("options"))
self.list.append(plugin)
-
+ info("Plugin '%s' loaded.", p)
+
except PluginImportException, e:
error("Loading plugin '%s' failed: Could not import %s", p, e[0])
- else:
- info("Plugin '%s' loaded.", p)
finally:
doc.unlink()