diff options
author | Lance Stout <lancestout@gmail.com> | 2010-05-22 22:40:30 +0800 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-05-25 07:28:43 +0800 |
commit | 35f4ef3452015d7f9ef1e300bc104793de12f1e8 (patch) | |
tree | ab75df6f8274020e73fdf809c691d54deff984a9 /sleekxmpp/stanza/iq.py | |
parent | 828cba875fa5466493e3ea3f804bb349743a0615 (diff) | |
download | slixmpp-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.py | 1 |
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) |