mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 11:09:56 +00:00
* fixed stanza.keys()
This commit is contained in:
parent
8e3168e145
commit
0af468b435
2 changed files with 4 additions and 0 deletions
|
@ -77,6 +77,7 @@ class ElementBase(object):
|
||||||
out += [x for x in self.plugins]
|
out += [x for x in self.plugins]
|
||||||
if self.iterables:
|
if self.iterables:
|
||||||
out.append('substanzas')
|
out.append('substanzas')
|
||||||
|
return tuple(out)
|
||||||
|
|
||||||
def find(self, item):
|
def find(self, item):
|
||||||
return self.iterables.find(item)
|
return self.iterables.find(item)
|
||||||
|
|
|
@ -16,6 +16,9 @@ def testAffiliations():
|
||||||
values = iq2.getValues()
|
values = iq2.getValues()
|
||||||
print(values)
|
print(values)
|
||||||
iq3.setValues(values)
|
iq3.setValues(values)
|
||||||
|
print("-"*8)
|
||||||
|
print(iq3.keys())
|
||||||
|
|
||||||
print(iq3)
|
print(iq3)
|
||||||
print(str(iq) == str(iq2) == str(iq3))
|
print(str(iq) == str(iq2) == str(iq3))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue