

def get_pagination_params(request):
    "Return marker, limit tuple from request.\n\n    :param request: `wsgi.Request` possibly containing 'marker' and 'limit'\n                    GET variables. 'marker' is the id of the last element\n                    the client has seen, and 'limit' is the maximum number\n                    of items to return. If 'limit' is not specified, 0, or\n                    > max_limit, we default to max_limit. Negative values\n                    for either marker or limit will cause\n                    exc.HTTPBadRequest() exceptions to be raised.\n\n    "
    params = {
        
    }
    for param in ['marker', 'limit']:
        if (not (request in request.GET)):
            continue
        try:
            params[param] = int(request.GET[param])
        except ValueError:
            msg = (_('%s param must be an integer') % param)
            raise webob.exc.HTTPBadRequest(explanation=msg)
        if (params[param] < 0):
            msg = (_('%s param must be positive') % param)
            raise webob.exc.HTTPBadRequest(explanation=msg)
    return params

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/common.py get_pagination_params/VarMisuse@34/232 `param`->`request`