def flag_disabled(context, flag_name): request = context.get('request', None) return base_flag_disabled(flag_name, request=request)
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)
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)