changeset 80:46894097e7ee

wokkel (pubsub): add `notifyPurge` method
author Goffi <goffi@goffi.org>
date Thu, 29 Jul 2021 15:50:25 +0200
parents 52ba2fcda8a5
children 2d99519090b9
files sat_tmp/wokkel/pubsub.py setup.py
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_tmp/wokkel/pubsub.py	Fri Jun 18 14:14:44 2021 +0200
+++ b/sat_tmp/wokkel/pubsub.py	Thu Jul 29 15:50:25 2021 +0200
@@ -1621,6 +1621,14 @@
             self.send(message)
 
 
+    def notifyPurge(self, service, nodeIdentifier, subscribers):
+        for subscriber in subscribers:
+            message = self._createNotification('purge', service,
+                                               nodeIdentifier,
+                                               subscriber)
+            self.send(message)
+
+
     def getNodeInfo(self, requestor, service, nodeIdentifier):
         return None
 
--- a/setup.py	Fri Jun 18 14:14:44 2021 +0200
+++ b/setup.py	Thu Jul 29 15:50:25 2021 +0200
@@ -27,7 +27,7 @@
 
 setup(
     name=NAME,
-    version='0.8.0b1',
+    version='0.9.dev0',
     description='Libervia temporary third party patches',
     long_description=(
         'This module is used by Libervia project (formerly "Salut à Toi") project to '