# HG changeset patch # User Goffi # Date 1448462121 -3600 # Node ID fd6957dfa8c63161908cba2bddd32c8fa56959fd # Parent 4629645a368de32596f64655d5788353769475e3 tmp (wokkel.pubsub): implemented missing notifyRetract diff -r 4629645a368d -r fd6957dfa8c6 wokkel/pubsub.py --- a/wokkel/pubsub.py Thu Sep 10 15:04:16 2015 +0200 +++ b/wokkel/pubsub.py Wed Nov 25 15:35:21 2015 +0100 @@ -1469,6 +1469,18 @@ 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: