(obj, severe, warn)
gets a bootstrap class for an object comparing to thresholds.
    assumes bigger is worse and default is good.
gets a bootstrap class for an object comparing to thresholds.
    assumes bigger is worse and default is good.
gets a bootstrap class for an object comparing to thresholds . assumes bigger is worse and default is good .
def _bootstrap_class(obj, severe, warn):
    """
    gets a bootstrap class for an object comparing to thresholds.
    assumes bigger is worse and default is good.
    """
    if obj > severe:
        return "label label-danger"
    elif obj > warn:
        return "label label-warning"
    else:
        return "label label-success"
def _bootstrap_class ( obj , severe , warn ) : if obj > severe : return "label label-danger" elif obj > warn : return "label label-warning" else : return "label label-success"