On Sat, 2006-08-12 at 03:00 -0700, Mike Cantelon wrote: > I'm starting to play with Django and liking it... > > One thing I was wondering, though, about the pagination object is why > django/core/paginator.py doesn't have get_next_page and > get_previous_page functions (to return the appropriate page numbers), > although it does have has_next_page and has_previous page functions?
I'm not sure those functions make sense in the current ObjectPaginator implementation. The thing is, that object doesn't even have a concept of "current page". Instead it's an object from which you can retrieve any individual page (random access) and get information about whether there would be a next or previous page for some particular page number. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---