(self, mode=None)
Runs all policies in the specified mode
Runs all policies in the specified mode
Runs all policies in the specified mode
def run_all_policies(self, mode=None):
        """
        Runs all policies in the specified mode
        """
        Context().set_mode(mode)
        for policy in self._policies:     
            if self._push:
                self.connection_manager = ConnectionManager(policy, limit_groups=self._limit_groups, limit_hosts=self._limit_hosts)
            self.run_policy(policy=policy)
def run_all_policies ( self , mode = None ) : Context ( ) . set_mode ( mode ) for policy in self . _policies : if self . _push : self . connection_manager = ConnectionManager ( policy , limit_groups = self . _limit_groups , limit_hosts = self . _limit_hosts ) self . run_policy ( policy = policy )