コード例 #1
0
ファイル: listener.py プロジェクト: sree-dev/weather
def newconsensus_listener(event):
    """Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

    @param event: The NEWCONSENSUS event. Not used by the function.
    """
    
    logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
    updaters.run_all()
コード例 #2
0
ファイル: listener.py プロジェクト: meejah/tor-weather
def newconsensus_listener(event):
    """
    Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

    @param event: The NEWCONSENSUS event. Not used by the function.
    """

    logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
    updaters.run_all()
コード例 #3
0
ファイル: listener.py プロジェクト: RifasM/Tor-Weather
    def new_consensus_event(self, event):
        """Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

        @param event: The NEWCONSENSUS event. Not used by the function,
                      but included so that this overrides 
                      C{TorCtl.EventHandler.new_consensus_event}
        """

        logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
        updaters.run_all()
コード例 #4
0
    def new_consensus_event(self, event):
        """Call C{updaters.run_all()} when a NEWCONSENSUS event is received.

        @param event: The NEWCONSENSUS event. Not used by the function,
                      but included so that this overrides 
                      C{TorCtl.EventHandler.new_consensus_event}
        """

        logging.info('Got a new consensus. Updating router table and ' + \
                     'checking all subscriptions.')
        updaters.run_all()