summaryrefslogtreecommitdiff
path: root/portato
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
parent9cb047b6c35cddd624ffde4e3b16253a269366ba (diff)
downloadportato-3fb2546a1b528c24168877813a49725094c022cc.tar.gz
portato-3fb2546a1b528c24168877813a49725094c022cc.tar.bz2
portato-3fb2546a1b528c24168877813a49725094c022cc.zip
new Plugin Scheme
Diffstat (limited to 'portato')
-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()
a href='/feed2imap-go.git/commit/pkg/config/config.go?h=v0.1.1&id=fec3ecd257c34fba37703b2999ab5ea902314657&follow=1'>Option "reupload-if-updated"René 'Necoro' Neumann2-0/+4 2020-05-03Fix typoRené 'Necoro' Neumann1-2/+2 2020-05-02Use uuid library directly and encode to base64.René 'Necoro' Neumann6-10/+16 2020-05-02RestructureRené 'Necoro' Neumann8-95/+111 2020-05-02WIP: Message-IdsRené 'Necoro' Neumann8-5/+40 2020-05-02Typo and mention config example in READMERené 'Necoro' Neumann2-1/+3