analytics/geckoboard_views.py
def get_GET_bool(request, var_name, default=True):
    """
    Tries to extract a boolean variable from the specified request.
    """

    val = request.GET.get(var_name, default)
    if isinstance(val, str) or isinstance(val, unicode):
        val = True if val[0] == 't' else False

    return val
def get_GET_bool(request, var_name, default=True):
    val = request.GET.get(var_name, default)
    if isinstance(val, str) or isinstance(val, unicode):
        val = True if val[0] == 't' else False

    return val
def get_GET_bool ( request , var_name , default = True ) : val = request . GET . get ( var_name , default ) if isinstance ( val , str ) or isinstance ( val , unicode ) : val = True if val [ 0 ] == 't' else False return val
Tries to extract a boolean variable from the specified request.
Tries to extract a boolean variable from the specified request .