Exemplo n.º 1
0
def flag_enabled(context, flag_name):
    request = context.get('request', None)
    return base_flag_enabled(flag_name, request=request)
Exemplo n.º 2
0
def flag_enabled(context, flag_name, request=None, **kwargs):
    if request is None:
        request = context.get("request")
    return base_flag_enabled(flag_name, request=request, **kwargs)
Exemplo n.º 3
0
def flag_enabled(flag_name, request=None):
    """ Check if a flag is enabled for a given request """
    return base_flag_enabled(flag_name, request=request)