summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza/iq.py
diff options
context:
space:
mode:
authorBrian Beggs <macdiesel@gmail.com>2010-06-30 13:54:53 -0400
committerBrian Beggs <macdiesel@gmail.com>2010-06-30 13:54:53 -0400
commitc538ffae79728f7cb2675e14af64915682c19fe1 (patch)
treee8858b483c24471a03238beb55057d437acfb9bc /sleekxmpp/stanza/iq.py
parentc0a6291feae148916064ab71e13815a84008fada (diff)
downloadslixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.tar.gz
slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.tar.bz2
slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.tar.xz
slixmpp-c538ffae79728f7cb2675e14af64915682c19fe1.zip
digest-md5 auth now works, had to remove from __future__ import unicode_literals to get it working correctly. Also some improvments for the prioroity message sending.
Diffstat (limited to 'sleekxmpp/stanza/iq.py')
-rw-r--r--sleekxmpp/stanza/iq.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/sleekxmpp/stanza/iq.py b/sleekxmpp/stanza/iq.py
index ded7515f..26f09268 100644
--- a/sleekxmpp/stanza/iq.py
+++ b/sleekxmpp/stanza/iq.py
@@ -1,9 +1,9 @@
"""
- SleekXMPP: The Sleek XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of SleekXMPP.
+ SleekXMPP: The Sleek XMPP Library
+ Copyright (C) 2010 Nathanael C. Fritz
+ This file is part of SleekXMPP.
- See the file license.txt for copying permission.
+ See the file license.txt for copying permission.
"""
from .. xmlstream.stanzabase import StanzaBase
from xml.etree import cElementTree as ET
@@ -67,11 +67,11 @@ class Iq(RootStanza):
self.xml.remove(child)
return self
- def send(self, block=True, timeout=10):
+ def send(self, block=True, timeout=10, priority=False):
if block and self['type'] in ('get', 'set'):
waitfor = Waiter('IqWait_%s' % self['id'], MatcherId(self['id']))
self.stream.registerHandler(waitfor)
- StanzaBase.send(self)
+ StanzaBase.send(self, priority)
return waitfor.wait(timeout)
else:
- return StanzaBase.send(self)
+ return StanzaBase.send(self, priority)