parameters: (self, filter=None)
return_statement: return unsubd
docstring: Clears list of subscribed listeners. If filter is given, it must
          be a function that takes a listener and returns true if the listener
          should be unsubscribed. Returns the list of Listener for listeners 
          that were unsubscribed.
docstring_summary: Clears list of subscribed listeners. If filter is given, it must
          be a function that takes a listener and returns true if the listener
          should be unsubscribed. Returns the list of Listener for listeners 
          that were unsubscribed.
docstring_tokens: Clears list of subscribed listeners . If filter is given it must be a function that takes a listener and returns true if the listener should be unsubscribed . Returns the list of Listener for listeners that were unsubscribed .
function: def unsubscribeAllListeners(self, filter=None):
          """Clears list of subscribed listeners. If filter is given, it must
          be a function that takes a listener and returns true if the listener
          should be unsubscribed. Returns the list of Listener for listeners 
          that were unsubscribed."""
          unsubd = []
          if filter is None:
              for listener in self.__listeners:
                  listener._unlinkFromTopic_()
              unsubd = py2and3.keys(self.__listeners)
              self.__listeners = {}
          else:
              unsubd = []
              for listener in py2and3.keys(self.__listeners):
                  if filter(listener):
                      unsubd.append(listener)
                      listener._unlinkFromTopic_()
                      del self.__listeners[listener]
  
          # send notification regarding all listeners actually unsubscribed
          notificationMgr = self._treeConfig.notificationMgr
          for unsubdLisnr in unsubd:
              notificationMgr.notifyUnsubscribe(unsubdLisnr, self)
  
          return unsubd
function_tokens: def unsubscribeAllListeners ( self , filter = None ) : unsubd = [ ] if filter is None : for listener in self . __listeners : listener . _unlinkFromTopic_ ( ) unsubd = py2and3 . keys ( self . __listeners ) self . __listeners = { } else : unsubd = [ ] for listener in py2and3 . keys ( self . __listeners ) : if filter ( listener ) : unsubd . append ( listener ) listener . _unlinkFromTopic_ ( ) del self . __listeners [ listener ] # send notification regarding all listeners actually unsubscribed notificationMgr = self . _treeConfig . notificationMgr for unsubdLisnr in unsubd : notificationMgr . notifyUnsubscribe ( unsubdLisnr , self ) return unsubd