Exemplo n.º 1
0
 def clear(self):
     """Clears Enforcer rules, policy's cache and policy's path."""
     self.set_rules({})
     fileutils.delete_cached_file(self.policy_path)
     self.default_rule = None
     self.policy_path = None
Exemplo n.º 2
0
 def clear(self):
     """Clears Enforcer rules, policy's cache and policy's path."""
     self.set_rules({})
     fileutils.delete_cached_file(self.policy_path)
     self.default_rule = None
     self.policy_path = None