diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-12-22 10:05:53 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-12-22 10:05:53 +0000 |
commit | 805afa4bc1f44598d786fddc92c5129c62464227 (patch) | |
tree | 384291b5441f5cdbcd13b52cdab05062dc97a183 /sleekxmpp/stanza | |
parent | 07018c0afa7485b06424bf6787d242e7ee523d34 (diff) | |
download | slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.tar.gz slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.tar.bz2 slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.tar.xz slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.zip |
* fixed unhandled iqs
Diffstat (limited to 'sleekxmpp/stanza')
-rw-r--r-- | sleekxmpp/stanza/iq.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sleekxmpp/stanza/iq.py b/sleekxmpp/stanza/iq.py index 3961ead6..a9c9c4be 100644 --- a/sleekxmpp/stanza/iq.py +++ b/sleekxmpp/stanza/iq.py @@ -65,21 +65,19 @@ class Iq(StanzaBase): return ns return '' + def reply(self): + self['type'] = 'result' + StanzaBase.reply(self) + return self + def delQuery(self): for child in self.getchildren(): if child.tag.endswith('query'): self.xml.remove(child) return self - def unhandled(self): - pass - # returned unhandled error - - def exception(self, traceback=None): - pass - def send(self, block=True, timeout=10): - if block: + if block and self['type'] in ('get', 'set'): waitfor = Waiter('IqWait_%s' % self['id'], MatcherId(self['id'])) self.stream.registerHandler(waitfor) StanzaBase.send(self) |