comparison idavoll/pubsub.py @ 96:f289c3e1dd0a

Announce pubsub#delete-any feature.
author Ralph Meijer <ralphm@ik.nu>
date Tue, 23 Nov 2004 16:36:58 +0000
parents 3ad74552bbc7
children cf918d581da5
comparison
equal deleted inserted replaced
95:3ad74552bbc7 96:f289c3e1dd0a
483 483
484 def componentConnected(self, xmlstream): 484 def componentConnected(self, xmlstream):
485 xmlstream.addObserver(PUBSUB_RETRACT, self.onRetract) 485 xmlstream.addObserver(PUBSUB_RETRACT, self.onRetract)
486 xmlstream.addObserver(PUBSUB_PURGE, self.onPurge) 486 xmlstream.addObserver(PUBSUB_PURGE, self.onPurge)
487 487
488 def get_disco_info(self, node):
489 info = []
490
491 if not node:
492 info.append(disco.Feature(NS_PUBSUB + "#delete-any"))
493
494 return defer.succeed(info)
495
488 def onRetract(self, iq): 496 def onRetract(self, iq):
489 self.handler_wrapper(self._onRetract, iq) 497 self.handler_wrapper(self._onRetract, iq)
490 498
491 def _onRetract(self, iq): 499 def _onRetract(self, iq):
492 try: 500 try: