summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2010-01-08 05:26:37 +0000
committerNathan Fritz <fritzy@netflint.net>2010-01-08 05:26:37 +0000
commit0af468b435a3c24792f8d70ef802193ff08f26af (patch)
treec83ab0523102cd9baad557c2aa3b4eff6a2c645f
parent8e3168e145da563cc0cca9762ff0c78b65425b73 (diff)
downloadslixmpp-0af468b435a3c24792f8d70ef802193ff08f26af.tar.gz
slixmpp-0af468b435a3c24792f8d70ef802193ff08f26af.tar.bz2
slixmpp-0af468b435a3c24792f8d70ef802193ff08f26af.tar.xz
slixmpp-0af468b435a3c24792f8d70ef802193ff08f26af.zip
* fixed stanza.keys()
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py1
-rw-r--r--tests/pubsub_stanzas.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 77244fb7..d4c1118f 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -77,6 +77,7 @@ class ElementBase(object):
out += [x for x in self.plugins]
if self.iterables:
out.append('substanzas')
+ return tuple(out)
def find(self, item):
return self.iterables.find(item)
diff --git a/tests/pubsub_stanzas.py b/tests/pubsub_stanzas.py
index 2fd6df43..d768a3df 100644
--- a/tests/pubsub_stanzas.py
+++ b/tests/pubsub_stanzas.py
@@ -16,6 +16,9 @@ def testAffiliations():
values = iq2.getValues()
print(values)
iq3.setValues(values)
+ print("-"*8)
+ print(iq3.keys())
+
print(iq3)
print(str(iq) == str(iq2) == str(iq3))