(count, plusOne=False)
return retVal
Returns range of values used in limit/offset constructs

    >>> [_ for _ in getLimitRange(10)]
    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Returns range of values used in limit/offset constructs
Returns range of values used in limit / offset constructs
def getLimitRange(count, plusOne=False):
    """
    Returns range of values used in limit/offset constructs

    >>> [_ for _ in getLimitRange(10)]
    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
    """

    retVal = None
    count = int(count)
    limitStart, limitStop = 1, count

    if isinstance(conf.limitStop, int) and conf.limitStop > 0 and conf.limitStop < limitStop:
        limitStop = conf.limitStop

    if isinstance(conf.limitStart, int) and conf.limitStart > 0 and conf.limitStart <= limitStop:
        limitStart = conf.limitStart

    retVal = xrange(limitStart, limitStop + 1) if plusOne else xrange(limitStart - 1, limitStop)

    return retVal
def getLimitRange ( count , plusOne = False ) : retVal = None count = int ( count ) limitStart , limitStop = 1 , count if isinstance ( conf . limitStop , int ) and conf . limitStop > 0 and conf . limitStop < limitStop : limitStop = conf . limitStop if isinstance ( conf . limitStart , int ) and conf . limitStart > 0 and conf . limitStart <= limitStop : limitStart = conf . limitStart retVal = xrange ( limitStart , limitStop + 1 ) if plusOne else xrange ( limitStart - 1 , limitStop ) return retVal