示例#1
0
 def _set_rules(self, default_rule):
     rules = common_policy.Rules(
         dict((k, common_policy.parse_rule(v))
              for k, v in self.rules.items()), default_rule)
     common_policy.set_rules(rules)
示例#2
0
 def _set_rules(self, default_rule):
     rules = common_policy.Rules(
         dict((k, common_policy.parse_rule(v))
              for k, v in self.rules.items()), default_rule)
     common_policy.set_rules(rules)
示例#3
0
 def set_rules(self, rules):
     common_policy.set_rules(
         common_policy.Rules(
             dict((k, common_policy.parse_rule(v))
                  for k, v in rules.items())))
示例#4
0
 def set_rules(self, rules):
     common_policy.set_rules(common_policy.Rules(
                             dict((k, common_policy.parse_rule(v))
                                  for k, v in rules.items())))