comparison 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
comparison
equal deleted inserted replaced
362:6ee61218a33f 363:a98b3d52c2ff
162 def __init__(self, storage): 162 def __init__(self, storage):
163 utility.EventDispatcher.__init__(self) 163 utility.EventDispatcher.__init__(self)
164 self.storage = storage 164 self.storage = storage
165 self._callbackList = [] 165 self._callbackList = []
166 166
167 def supportsPublishOptions(self):
168 return True
167 def supportsPublisherAffiliation(self): 169 def supportsPublisherAffiliation(self):
168 return True 170 return True
169 171
170 def supportsGroupBlog(self): 172 def supportsGroupBlog(self):
171 return True 173 return True
1240 # a jid in this server) is created by the right jid 1242 # a jid in this server) is created by the right jid
1241 1243
1242 if self.backend.supportsAutoCreate(): 1244 if self.backend.supportsAutoCreate():
1243 self.features.append("auto-create") 1245 self.features.append("auto-create")
1244 1246
1247 if self.backend.supportsPublishOptions():
1248 self.features.append("publish-options")
1249
1245 if self.backend.supportsInstantNodes(): 1250 if self.backend.supportsInstantNodes():
1246 self.features.append("instant-nodes") 1251 self.features.append("instant-nodes")
1247 1252
1248 if self.backend.supportsOutcastAffiliation(): 1253 if self.backend.supportsOutcastAffiliation():
1249 self.features.append("outcast-affiliation") 1254 self.features.append("outcast-affiliation")