summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza/iq.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-05-22 22:40:30 +0800
committerNathan Fritz <fritzy@netflint.net>2010-05-25 07:28:43 +0800
commit35f4ef3452015d7f9ef1e300bc104793de12f1e8 (patch)
treeab75df6f8274020e73fdf809c691d54deff984a9 /sleekxmpp/stanza/iq.py
parent828cba875fa5466493e3ea3f804bb349743a0615 (diff)
downloadslixmpp-35f4ef3452015d7f9ef1e300bc104793de12f1e8.tar.gz
slixmpp-35f4ef3452015d7f9ef1e300bc104793de12f1e8.tar.bz2
slixmpp-35f4ef3452015d7f9ef1e300bc104793de12f1e8.tar.xz
slixmpp-35f4ef3452015d7f9ef1e300bc104793de12f1e8.zip
Modified the return values for several methods so that they can be chained.
For example: iq.reply().error().setPayload(something.xml).send()
Diffstat (limited to 'sleekxmpp/stanza/iq.py')
-rw-r--r--sleekxmpp/stanza/iq.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/stanza/iq.py b/sleekxmpp/stanza/iq.py
index 4969b703..ded7515f 100644
--- a/sleekxmpp/stanza/iq.py
+++ b/sleekxmpp/stanza/iq.py
@@ -37,6 +37,7 @@ class Iq(RootStanza):
def setPayload(self, value):
self.clear()
StanzaBase.setPayload(self, value)
+ return self
def setQuery(self, value):
query = self.xml.find("{%s}query" % value)