def get_page_size_args():
    """
    Get page size arguments, returns an int
    { <VIEW_NAME>: PAGE_NUMBER }

    Arguments are passed: psize_<VIEW_NAME>=<PAGE_SIZE>

    """
    page_sizes = {}
    for arg in request.args:
        re_match = re.findall("psize_(.*)", arg)
        if re_match:
            page_sizes[re_match[0]] = int(request.args.get(arg))
    return page_sizes

    Get page size arguments, returns an int
    { <VIEW_NAME>: PAGE_NUMBER }

    Arguments are passed: psize_<VIEW_NAME>=<PAGE_SIZE>

    
flask_appbuilder/urltools.py