You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We might need a more thorough pagination implementation to generate paginated responses.
I was looking around to see if there was anything that would make generating a paginated response from a simple list of data easy and so far the most promising I found is flask-paginate but we'd need to tweak it because it is designed more with generating a quick page UI in mind. There's an example here:
We might need a more thorough pagination implementation to generate paginated responses.
I was looking around to see if there was anything that would make generating a paginated response from a simple list of data easy and so far the most promising I found is
flask-paginate
but we'd need to tweak it because it is designed more with generating a quick page UI in mind. There's an example here:https://gist.github.com/mozillazg/69fb40067ae6d80386e10e105e6803c9
Using the RBAC mock as an example, I think in our case this could translate to something like:
The problem is the Pagination class currently doesn't offer a way to get just the plain URL from the first_page/next_page/last_page/prev_page: https://github.com/lixxu/flask-paginate/blob/master/flask_paginate/__init__.py#L439-L470
It returns some formatted HTML. We could open a PR to add functions that allow us to get just the plain URL string: https://github.com/lixxu/flask-paginate/blob/master/flask_paginate/__init__.py#L451
The text was updated successfully, but these errors were encountered: