Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/t/u/tuskar-0.4.1/tuskar/common/policy.py   tuskar(Download)
def _set_rules(data):
    default_rule = CONF.policy_default_rule
    policy.set_rules(policy.Rules.load_json(data, default_rule))
 
 

src/t/u/tuskar-HEAD/tuskar/common/policy.py   tuskar(Download)
def _set_rules(data):
    default_rule = CONF.policy_default_rule
    policy.set_rules(policy.Rules.load_json(data, default_rule))
 
 

src/t/u/tuskar-0.4.1/tuskar/tests/policy_fixture.py   tuskar(Download)
    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())))
 

src/t/u/tuskar-HEAD/tuskar/tests/policy_fixture.py   tuskar(Download)
    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())))