summaryrefslogtreecommitdiff
path: root/portato/plugin.py
diff options
context:
space:
mode:
authornecoro <>2007-04-26 12:20:44 +0000
committernecoro <>2007-04-26 12:20:44 +0000
commit3ed3fab4c3761fca5b220eb2f6b189d4f6618fa6 (patch)
treee60ed5c719440a1ca5faf6b4b34d873565ea24b6 /portato/plugin.py
parentc3d0d4d858242d2c5362f9b8152ca8027140edf7 (diff)
downloadportato-3ed3fab4c3761fca5b220eb2f6b189d4f6618fa6.tar.gz
portato-3ed3fab4c3761fca5b220eb2f6b189d4f6618fa6.tar.bz2
portato-3ed3fab4c3761fca5b220eb2f6b189d4f6618fa6.zip
nomsg
Diffstat (limited to 'portato/plugin.py')
-rw-r--r--portato/plugin.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/plugin.py b/portato/plugin.py
index 3d67f5b..a49be74 100644
--- a/portato/plugin.py
+++ b/portato/plugin.py
@@ -180,7 +180,7 @@ class Plugin:
@raises ParseException: on parsing errors"""
for h in hooks:
- hook = Hook(self, h.getAttribute("hook"), h.getAttribute("call"))
+ hook = Hook(self, str(h.getAttribute("hook")), str(h.getAttribute("call")))
hook.parse_connects(h.getElementsByTagName("connect"))
self.hooks.append(hook)
@@ -193,7 +193,7 @@ class Plugin:
@raises ParseException: on parsing errors"""
for m in menus:
- menu = Menu(self, m.getAttribute("label"), m.getAttribute("call"))
+ menu = Menu(self, str(m.getAttribute("label")), str(m.getAttribute("call")))
self.menus.append(menu)
def set_import (self, imports):
@@ -216,7 +216,7 @@ class Plugin:
if nodes[0].nodeType != nodes[0].TEXT_NODE:
raise ParseException, "Malformed import"
- self._import = nodes[0].nodeValue.strip()
+ self._import = str(nodes[0].nodeValue.strip())
try: # try loading
mod = __import__(self._import)
@@ -368,7 +368,7 @@ class PluginQueue:
frontendOK = False
if frontendOK is None or frontendOK == True:
- plugin = Plugin(p, elem.getAttribute("name"), elem.getAttribute("author"))
+ plugin = Plugin(p, str(elem.getAttribute("name")), str(elem.getAttribute("author")))
plugin.parse_hooks(elem.getElementsByTagName("hook"))
plugin.set_import(elem.getElementsByTagName("import"))
plugin.parse_menus(elem.getElementsByTagName("menu"))