summaryrefslogtreecommitdiff
path: root/sleekxmpp/stanza
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-05-22 22:40:30 +0800
committerThom Nichols <tmnichols@gmail.com>2010-06-01 22:07:51 +0800
commit520bf72e1113f3621658c7090a676e7d4fa63013 (patch)
treec58dd75e73a2511380f48ba2bba1fc79baf8a6e1 /sleekxmpp/stanza
parent040f426f1ace23583fc035f36390ef7288c68a56 (diff)
downloadslixmpp-520bf72e1113f3621658c7090a676e7d4fa63013.tar.gz
slixmpp-520bf72e1113f3621658c7090a676e7d4fa63013.tar.bz2
slixmpp-520bf72e1113f3621658c7090a676e7d4fa63013.tar.xz
slixmpp-520bf72e1113f3621658c7090a676e7d4fa63013.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')
-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)