def rangeText(self, key, pBand):

        T = current.T
        if key == -1:
            return ""
        elif key == 0:
            return T("At or below %s") % (pBand[1])
        elif key == len(pBand)-1:
            return T("Above %s") % (pBand[len(pBand)-1])
        else:
            return "%s - %s" % (pBand[key], pBand[key+1])

# -----------------------------------------------------------------------------
@todo: docstring
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_S3AnalysisPriority.rangeText