diff src/plugins/plugin_xep_0047.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 2c4016921403
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0047.py	Thu Nov 01 19:52:59 2012 +0100
+++ b/src/plugins/plugin_xep_0047.py	Thu Nov 01 22:41:39 2012 +0100
@@ -163,7 +163,7 @@
         xmlstream.addObserver(event_data, observer_cb, profile = profile)
         xmlstream.addOnetimeObserver(event_close, self.streamClosing, profile = profile)
         #finally, we send the accept stanza
-        result = domish.Element(('', 'iq'))
+        result = domish.Element((None, 'iq'))
         result['type'] = 'result'
         result['id'] = IQ['id']
         result['to'] = IQ['from']
@@ -174,7 +174,7 @@
         debug(_("IBB stream closing"))
         data_elt = IQ.firstChildElement()
         sid = data_elt.getAttribute('sid')
-        result = domish.Element(('', 'iq'))
+        result = domish.Element((None, 'iq'))
         result['type'] = 'result'
         result['id'] = IQ['id']
         result['to'] = IQ['from']
@@ -187,7 +187,7 @@
         
         if self._manageDataElt(data_elt, 'iq', IQ['id'], jid.JID(IQ['from'])):
             #and send a success answer
-            result = domish.Element(('', 'iq'))
+            result = domish.Element((None, 'iq'))
             result['type'] = 'result'
             result['id'] = IQ['id']
             result['to'] = IQ['from']
@@ -244,7 +244,7 @@
         @param iq_id: IQ id
         @param to_jid: addressee
         @param xmlstream: XML stream to use to send the error"""
-        result = domish.Element(('', 'iq'))
+        result = domish.Element((None, 'iq'))
         result['type'] = 'result'
         result['id'] = iq_id
         result['to'] = to_jid