Re: Paginator Class - Refactor page function for better abstraction

2017-04-10 Thread Tobias Kunze
Hi Robert, sounds good to me in general, just a few thoughts: >I'd like to refactor several things about it that would have made it more >abstract and easier for me, but still keep it backwards compatible: > > - rename bottom and top variables, instead self.first and self.last > respectivel

Paginator Class - Refactor page function for better abstraction

2017-04-06 Thread Robert Roskam
So the existing Paginator class is great for the standard use case. But recently I wanted to be have a Paginator that would return *at least per_page *x items. I called it FlexPaginator. My use case was that I had a group_by value that I wanted to keep together on the same page, and so the row