analytics/geckoboard_views.py
def get_GET_array(request, var_name, fail_silently=True):
    """
    Returns the GET array's contents for the specified variable.
    """

    vals = request.GET.getlist(var_name)
    if not vals:
        if fail_silently:
            return []
        else:
            raise Exception, _("No array called '%(varname)s' in GET variables") % {'varname': var_name}

    return vals
def get_GET_array(request, var_name, fail_silently=True):
    """
    Returns the GET array's contents for the specified variable.
    """

    vals = request.GET.getlist(var_name)
    if not vals:
        if fail_silently:
            return []
        else:
            raise Exception, _("No array called '%(varname)s' in GET variables") % {'varname': var_name}

    return vals
def get_GET_array ( request , var_name , fail_silently = True ) : vals = request . GET . getlist ( var_name ) if not vals : if fail_silently : return [ ] else : raise Exception , _ ( "No array called '%(varname)s' in GET variables" ) % { 'varname' : var_name } return vals
Returns the GET array's contents for the specified variable.
Returns the GET array s contents for the specified variable .