From 0af468b435a3c24792f8d70ef802193ff08f26af Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Fri, 8 Jan 2010 05:26:37 +0000 Subject: [PATCH] * fixed stanza.keys() --- sleekxmpp/xmlstream/stanzabase.py | 1 + tests/pubsub_stanzas.py | 3 +++ 2 files changed, 4 insertions(+) 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))