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:
parent
71d61f372f
commit
e22336c6f2
1 changed files with 41 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue