plugin XEP-0060: added sendItem and psItemSend bridge method as a way to send directly raw XML for an item + use client instead of profile_key in publish + renamed psItemGet to psItemsGet

This commit is contained in:
Goffi 2017-06-27 19:38:20 +02:00
commit e22336c6f2

View file

@ -98,9 +98,9 @@ class XEP_0163(object):
@param data: domish.Element to use as payload
@param profile: profile which send the data
"""
client = self.host.getClient(profile)
item = pubsub.Item(payload=data)
return self.host.plugins["XEP-0060"].publish(None, node, [item], profile_key=profile)
return self.host.plugins["XEP-0060"].publish(client, None, node, [item])
def PEPSend(self, event_type, data, profile_key=C.PROF_KEY_NONE):
"""Send personal event after checking the data is alright