diff src/plugins/plugin_exp_events.py @ 2360:72cbb6478f97

plugin XEP-0060: use client instead of profile_key in getItems
author Goffi <goffi@goffi.org>
date Sun, 24 Sep 2017 16:32:22 +0200
parents 37887b5acb25
children 8b37a62336c3
line wrap: on
line diff
--- a/src/plugins/plugin_exp_events.py	Sun Sep 24 16:29:18 2017 +0200
+++ b/src/plugins/plugin_exp_events.py	Sun Sep 24 16:32:22 2017 +0200
@@ -104,7 +104,7 @@
         """
         if not id_:
             id_ = NS_EVENT
-        items, metadata = yield self._p.getItems(service, node, item_ids=[id_], profile_key=client.profile)
+        items, metadata = yield self._p.getItems(client, service, node, item_ids=[id_])
         try:
             event_elt = next(items[0].elements(NS_EVENT, u'event'))
         except IndexError:
@@ -285,7 +285,7 @@
         @return (dict): a dict with current attendance status,
             an empty dict is returned if nothing has been answered yed
         """
-        items, metadata = yield self._p.getItems(service, node, item_ids=[client.jid.userhost()], profile_key=client.profile)
+        items, metadata = yield self._p.getItems(client, service, node, item_ids=[client.jid.userhost()])
         try:
             event_elt = next(items[0].elements(NS_EVENT, u'invitee'))
         except IndexError:
@@ -339,7 +339,7 @@
         @return (dict): a dict with current attendance status,
             an empty dict is returned if nothing has been answered yed
         """
-        items, metadata = yield self._p.getItems(service, node, profile_key=client.profile)
+        items, metadata = yield self._p.getItems(client, service, node)
         invitees = {}
         for item in items:
             try: