Make sure that the id parameter used in xmpp.makeIq is converted to a string.

Otherwise, SleekXMPP will barf on trying to serialize an integer when it expects text.
This commit is contained in:
Lance stout 2010-06-01 10:52:37 -04:00
parent 01e8040a07
commit f5cae85af5

View file

@ -152,7 +152,7 @@ class basexmpp(object):
return waitfor.wait(timeout)
def makeIq(self, id=0, ifrom=None):
return self.Iq().setValues({'id': id, 'from': ifrom})
return self.Iq().setValues({'id': str(id), 'from': ifrom})
def makeIqGet(self, queryxmlns = None):
iq = self.Iq().setValues({'type': 'get'})