diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-09 11:49:34 -0400 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-11 17:55:06 -0400 |
commit | 13f3aec21c14c6a9379424ed974b4e2ce4a5e95b (patch) | |
tree | 719c9ab7a97b8247686c7ce5abce666210900c64 | |
parent | c47078c72d7525749e563b113192bce69345e2e1 (diff) |
use GetContactAttributes() to get contact caps
-rw-r--r-- | tests/twisted/caps_helper.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/twisted/caps_helper.py b/tests/twisted/caps_helper.py index fdecfa2c6..b5579a2e0 100644 --- a/tests/twisted/caps_helper.py +++ b/tests/twisted/caps_helper.py @@ -316,7 +316,11 @@ def presence_and_disco(q, conn, stream, contact, disco, return h def get_contacts_capabilities_sync(conn, contacts): - return conn.ContactCapabilities.GetContactCapabilities(contacts) + h2asv = conn.Contacts.GetContactAttributes(contacts, [cs.CONN_IFACE_CONTACT_CAPS], False) + ret = {} + for h in contacts: + ret[h] = h2asv[h][cs.ATTR_CONTACT_CAPABILITIES] + return ret def send_presence(q, conn, stream, contact, caps, initial=True, show=None): h = conn.get_contact_handle_sync(contact) |