diff options
author | Lance Stout <lancestout@gmail.com> | 2014-02-06 09:54:45 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-02-06 09:54:45 -0800 |
commit | a2423b849963887415b5b86e556ccda5f9ac2913 (patch) | |
tree | c0f0147093b8637fcd12b4f8f065c8d9a8e2aaf0 /sleekxmpp/plugins/xep_0323/stanza | |
parent | 49acdac7765498f11b79dd826742ce8570aae5d2 (diff) | |
download | slixmpp-sleek-1.2.0.tar.gz slixmpp-sleek-1.2.0.tar.bz2 slixmpp-sleek-1.2.0.tar.xz slixmpp-sleek-1.2.0.zip |
Get the IoT plugins to pass tests on Py3sleek-1.2.01.2.0
Diffstat (limited to 'sleekxmpp/plugins/xep_0323/stanza')
-rw-r--r-- | sleekxmpp/plugins/xep_0323/stanza/sensordata.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sleekxmpp/plugins/xep_0323/stanza/sensordata.py b/sleekxmpp/plugins/xep_0323/stanza/sensordata.py index 55e5060f..a11c3e94 100644 --- a/sleekxmpp/plugins/xep_0323/stanza/sensordata.py +++ b/sleekxmpp/plugins/xep_0323/stanza/sensordata.py @@ -124,10 +124,10 @@ class Request(ElementBase): def get_nodes(self): """Return all nodes.""" - nodes = set() + nodes = [] for node in self['substanzas']: if isinstance(node, RequestNode): - nodes.add(node) + nodes.append(node) return nodes def set_nodes(self, nodes): @@ -190,10 +190,10 @@ class Request(ElementBase): def get_fields(self): """Return all fields.""" - fields = set() + fields = [] for field in self['substanzas']: if isinstance(field, RequestField): - fields.add(field) + fields.append(field) return fields def set_fields(self, fields): @@ -351,10 +351,10 @@ class Fields(ElementBase): def get_nodes(self): """Return all nodes.""" - nodes = set() + nodes = [] for node in self['substanzas']: if isinstance(node, FieldsNode): - nodes.add(node) + nodes.append(node) return nodes def set_nodes(self, nodes): @@ -450,10 +450,10 @@ class FieldsNode(ElementBase): def get_timestamps(self): """Return all timestamps.""" #print(str(id(self)) + " get_timestamps: ") - timestamps = set() + timestamps = [] for timestamp in self['substanzas']: if isinstance(timestamp, Timestamp): - timestamps.add(timestamp) + timestamps.append(timestamp) return timestamps def set_timestamps(self, timestamps): @@ -634,10 +634,10 @@ class Timestamp(ElementBase): def get_datas(self): """ Return all data elements. """ - datas = set() + datas = [] for data in self['substanzas']: if isinstance(data, Field): - datas.add(data) + datas.append(data) return datas def set_datas(self, datas): |