(self, policy, limit_groups=None, limit_hosts=None)
Constructor.  Establishes mitogen router/broker.
Constructor.  Establishes mitogen router/broker.
Constructor . Establishes mitogen router / broker .
def __init__(self, policy, limit_groups=None, limit_hosts=None):
        """
        Constructor.  Establishes mitogen router/broker.
        """
        
        logging.getLogger('mitogen').setLevel(logging.DEBUG) # (ERROR)

        self.policy = policy
        self.broker = mitogen.master.Broker()
        self.router = mitogen.master.Router(self.broker)
        self.hosts_by_context = dict()
        self.connections = dict()
        self.hosts = dict()
        self.context = dict()
        self.allow_patterns = policy.allow_fileserving_patterns()
        self.deny_patterns  = policy.deny_fileserving_patterns()
        self.checksums = dict()
        self._limit_groups = limit_groups
        self._limit_hosts = limit_hosts
def __init__ ( self , policy , limit_groups = None , limit_hosts = None ) : logging . getLogger ( 'mitogen' ) . setLevel ( logging . DEBUG ) # (ERROR) self . policy = policy self . broker = mitogen . master . Broker ( ) self . router = mitogen . master . Router ( self . broker ) self . hosts_by_context = dict ( ) self . connections = dict ( ) self . hosts = dict ( ) self . context = dict ( ) self . allow_patterns = policy . allow_fileserving_patterns ( ) self . deny_patterns = policy . deny_fileserving_patterns ( ) self . checksums = dict ( ) self . _limit_groups = limit_groups self . _limit_hosts = limit_hosts