diff src/plugins/plugin_misc_radiocol.py @ 536:a31abb97310d

core, plugins: fixed bad namespace in stanza creation
author Goffi <goffi@goffi.org>
date Thu, 01 Nov 2012 22:41:39 +0100
parents 2a072735e459
children ca13633d3b6b
line wrap: on
line diff
--- a/src/plugins/plugin_misc_radiocol.py	Thu Nov 01 19:52:59 2012 +0100
+++ b/src/plugins/plugin_misc_radiocol.py	Thu Nov 01 22:41:39 2012 +0100
@@ -80,7 +80,7 @@
 
     def createRadiocolElt(self, to_jid, type="normal"):
         type = "normal" if to_jid.resource else "groupchat"
-        elt = domish.Element(('jabber:client','message'))
+        elt = domish.Element((None,'message'))
         elt["to"] = to_jid.full()
         elt["type"] = type
         elt.addElement((NC_RADIOCOL, RADIOC_TAG))
@@ -88,11 +88,11 @@
     
     def __create_started_elt(self):
         """Create a game_started domish element"""
-        started_elt = domish.Element(('','started'))
+        started_elt = domish.Element((None,'started'))
         return started_elt
 
     def __create_preload_elt(self, sender, filename, title, artist, album):
-        preload_elt = domish.Element(('','preload'))
+        preload_elt = domish.Element((None,'preload'))
         preload_elt['sender'] = sender
         preload_elt['filename'] = filename #XXX: the frontend should know the temporary directory where file is put
         preload_elt['title'] = title