def parse_permission_set(input):
    """Lookup a permission set name in the defined permissions.

    Requires a Flask app context.

    """
    if isinstance(input, basestring):
        try:
            return current_acl_manager.permission_sets[input]
        except __HOLE__:
            raise ValueError('unknown permission set %r' % input)
    return input
dataset/ETHPy150Open mikeboers/Flask-ACL/flask_acl/permission.py/parse_permission_set