Re: Paginator Overhall

2006-10-16 Thread SmileyChris
On Oct 17, 6:11 pm, "SmileyChris" wrote: > - #2575 fixes up some of the messy bits (including a few bugs) and adds > orphaning. Oh, and it also makes Paginator work with lists/tuples. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Paginator Overhall

2006-10-16 Thread SmileyChris
Just chiming in, To clarify, I only have two patches regarding pagination: - #2575 fixes up some of the messy bits (including a few bugs) and adds orphaning. - #2576 makes a PaginatorPage object which is useful for self-contained pages (IMO usual use on a template) > Trying to account for everyb

Re: Paginator Overhall

2006-10-14 Thread Afternoon
We have a modified Paginator class that is designed to provide Google-style abbreviated lists. It may be a useful starting point as it stores the page number and providers an __iter__ for displaying page lists. Rewriting this to produce unabbreviated page lists would be trivial. http://django.pas

Re: Paginator Overhall

2006-10-13 Thread sago
Adrian Holovaty wrote: > I love the idea of a Paginator class that knows what page it's on. Maybe a solution is to get a 'page' object back from the original paginator. So you can still call its methods to get individual morsels of data, or call a get_page_info method to get a PageInfo object bac

Re: Paginator Overhall

2006-10-13 Thread Adrian Holovaty
On 10/12/06, sago <[EMAIL PROTECTED]> wrote: > So I suggest, its time to see what people need from Paginator and make > a serious joint contribution to a complete system. Thanks for bringing this up. I'd like to make some big improvements to the paginator class, and you touched on most (all?) thi

Re: Paginator Overhall

2006-10-13 Thread sago
Malcom, Yes, I agree that it is better to have a generally useful framework, rather than an all singing and dancing solution to everybody's solution but yours. I also agree with a lot of your post. > Pagination is something that can and is presented in many > different ways. This is a subtext o

Re: Paginator Overhall

2006-10-12 Thread Malcolm Tredinnick
Hi Ian, On Thu, 2006-10-12 at 13:11 -0700, sago wrote: > All, > > I filed a bug in paginator last week. SmileyChris pointed out that his > extra-features patch would solve the bug, and add orphan control (so > you don't get one post on its own page at the end). > > I've got a pimped-up version