def add_resource(self, resource, parents=[]):
        self._resources.setdefault(resource, set())
        self._resources[resource].update(parents)
Add a resource or append parents resources to a special resource.
dataset/ETHPy150Open tonyseek/simple-rbac/rbac/acl.py/Registry.add_resource