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
|
|
@ -236,7 +236,7 @@ class Events(object):
|
|||
if e.condition == u'conflict':
|
||||
log.debug(_(u"requested node already exists"))
|
||||
|
||||
yield self._p.publish(service, node, items=[item_elt], profile_key=client.profile)
|
||||
yield self._p.publish(client, service, node, items=[item_elt])
|
||||
|
||||
defer.returnValue(node)
|
||||
|
||||
|
|
@ -313,4 +313,4 @@ class Events(object):
|
|||
except KeyError:
|
||||
pass
|
||||
item_elt = pubsub.Item(id=client.jid.userhost(), payload=event_elt)
|
||||
return self._p.publish(service, node, items=[item_elt], profile_key=client.profile)
|
||||
return self._p.publish(client, service, node, items=[item_elt])
|
||||
|
|
|
|||
Loading…
Reference in a new issue