comparison src/plugins/plugin_xep_0060.py @ 1259:633fcd13a7dc

plugin pubsub: fixed a bug introducted in revision 318eab3f93f8: getDiscoItems handler method which is called on disco items request, was calling getDiscoItems from host, which do a request itself, resulting in an infinite items request loop.
author Goffi <goffi@goffi.org>
date Fri, 21 Nov 2014 16:35:40 +0100
parents 8b891f9be183
children c8cf61c6d238
comparison
equal deleted inserted replaced
1258:c585df65828a 1259:633fcd13a7dc
348 disco_info = [] 348 disco_info = []
349 self.host.trigger.point("PubSub Disco Info", disco_info, self.parent.profile) 349 self.host.trigger.point("PubSub Disco Info", disco_info, self.parent.profile)
350 return disco_info 350 return disco_info
351 351
352 def getDiscoItems(self, requestor, service, nodeIdentifier=''): 352 def getDiscoItems(self, requestor, service, nodeIdentifier=''):
353 return self.host.getDiscoItems(service, nodeIdentifier, self.parent.profile) 353 return []
354 354
355 355
356 class PubSubRequest(pubsub.PubSubRequest): 356 class PubSubRequest(pubsub.PubSubRequest):
357 357
358 def __init__(self, verb=None, host=None, page_attrs=None): 358 def __init__(self, verb=None, host=None, page_attrs=None):