tmp (wokkel.pubsub): implemented missing notifyRetract
This commit is contained in:
parent
42b64871a8
commit
a668b23efc
1 changed files with 12 additions and 0 deletions
|
|
@ -1469,6 +1469,18 @@ class PubSubService(XMPPHandler, IQHandlerMixin):
|
|||
self.send(message)
|
||||
|
||||
|
||||
def notifyRetract(self, service, nodeIdentifier, notifications):
|
||||
for subscriber, subscriptions, items in notifications:
|
||||
message = self._createNotification('items', service,
|
||||
nodeIdentifier, subscriber,
|
||||
subscriptions)
|
||||
for item in items:
|
||||
retract = domish.Element((None, "retract"))
|
||||
retract['id'] = item['id']
|
||||
message.event.items.addChild(retract)
|
||||
self.send(message)
|
||||
|
||||
|
||||
def notifyDelete(self, service, nodeIdentifier, subscribers,
|
||||
redirectURI=None):
|
||||
for subscriber in subscribers:
|
||||
|
|
|
|||
Loading…
Reference in a new issue