Esempio n. 1
0
    def policy(self, rules, default_rule='allow', overwrite=True):
        # Inject an allow and deny rule
        rules['allow'] = '@'
        rules['deny'] = '!'

        # Set the rules
        policy.set_rules(rules, default_rule, overwrite)
Esempio n. 2
0
    def policy(self, rules, default_rule='allow', overwrite=True):
        # Inject an allow and deny rule
        rules['allow'] = '@'
        rules['deny'] = '!'

        # Set the rules
        policy.set_rules(rules, default_rule, overwrite)
Esempio n. 3
0
    def policy(self, rules, default_rule="allow", overwrite=True):
        # Inject an allow and deny rule
        rules["allow"] = "@"
        rules["deny"] = "!"

        # Set the rules
        policy.set_rules(rules, default_rule, overwrite)