Esempio n. 1
0
 def set_rules(self, rules):
     """Create a new Rules object based on the provided dict of rules"""
     rules_obj = policy.Rules(rules, self.default_rule)
     policy.set_rules(rules_obj)
Esempio n. 2
0
 def set_rules(self, rules):
     """Create a new Rules object based on the provided dict of rules"""
     rules_obj = policy.Rules(rules, self.default_rule)
     policy.set_rules(rules_obj)