diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-09 15:25:26 -0400 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-11 17:55:06 -0400 |
commit | a3266dab8044470dcbca6777d9dfc5070b616f1b (patch) | |
tree | ea1f1e5941331867a9f43984a339797c3d010f08 | |
parent | 13f3aec21c14c6a9379424ed974b4e2ce4a5e95b (diff) |
stop using GetPresences()
-rw-r--r-- | tests/twisted/presence_helper.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/twisted/presence_helper.py b/tests/twisted/presence_helper.py index 5d89a754a..768963376 100644 --- a/tests/twisted/presence_helper.py +++ b/tests/twisted/presence_helper.py @@ -1,2 +1,8 @@ +import constants as cs + def get_contacts_presences_sync(conn, contacts): - return conn.SimplePresence.GetPresences(contacts) + h2asv = conn.Contacts.GetContactAttributes(contacts, [cs.CONN_IFACE_SIMPLE_PRESENCE], False) + presences = {} + for h in contacts: + presences[h] = h2asv[h][cs.ATTR_PRESENCE] + return presences |