def default_links_pagination_factory(page, urlkwargs):
endpoint = '<STR_LIT>'<EOL>links = {<EOL>'<STR_LIT>': url_for(endpoint, page=page.page, _external=True, **urlkwargs),<EOL>}<EOL>if page.has_prev:<EOL><INDENT>links['<STR_LIT>'] = url_for(endpoint, page=page.prev_num, _external=True,<EOL>**urlkwargs)<EOL><DEDENT>if page.has_next:<EOL><INDENT>links['<STR_LIT>'] = url_for(endpoint, page=page.next_num, _external=True,<EOL>**urlkwargs)<EOL><DEDENT>return links<EOL>
Factory for record links generation.