diff sat_pubsub/backend.py @ 363:a98b3d52c2ff

added missing #publish-options in disco features
author Arnaud Joset <info@agayon.be>
date Fri, 03 Nov 2017 13:59:15 +0100
parents 9e40fc16f4df
children 8bd8be6815ab
line wrap: on
line diff
--- a/sat_pubsub/backend.py	Fri Nov 03 13:57:28 2017 +0100
+++ b/sat_pubsub/backend.py	Fri Nov 03 13:59:15 2017 +0100
@@ -164,6 +164,8 @@
         self.storage = storage
         self._callbackList = []
 
+    def supportsPublishOptions(self):
+        return True
     def supportsPublisherAffiliation(self):
         return True
 
@@ -1242,6 +1244,9 @@
         if self.backend.supportsAutoCreate():
             self.features.append("auto-create")
 
+        if self.backend.supportsPublishOptions():
+            self.features.append("publish-options")
+
         if self.backend.supportsInstantNodes():
             self.features.append("instant-nodes")