예제 #1
0
def flag_disabled(context, flag_name):
    request = context.get('request', None)
    return base_flag_disabled(flag_name, request=request)
예제 #2
0
def flag_disabled(context, flag_name, request=None, **kwargs):
    if request is None:
        request = context.get("request")
    return base_flag_disabled(flag_name, request=request, **kwargs)
예제 #3
0
def flag_disabled(flag_name, request=None):
    """ Check if a flag is disabled for a given request """
    return base_flag_disabled(flag_name, request=request)