diff -r 97b60788cb9a -r 3c2994f3b85f app/soc/views/site/sponsor/list.py --- a/app/soc/views/site/sponsor/list.py Fri Oct 03 07:03:11 2008 +0000 +++ b/app/soc/views/site/sponsor/list.py Fri Oct 03 17:21:41 2008 +0000 @@ -41,17 +41,13 @@ if alt_response: return alt_response - offset = request.GET.get('offset') - limit = request.GET.get('limit') - - offset, limit = list_helpers.getListParemeters(offset, limit) + offset, limit = list_helpers.cleanListParameters( + offset=request.GET.get('offset'), limit=request.GET.get('limit')) # Fetch one more to see if there should be a 'next' link sponsors = sponsor.getSponsorsForLimitAndOffset(limit + 1, offset=offset) - # TODO(tlarsen): uncomment when pagination select control is working. - # form = list_helpers.makeSelectNumItemsForm(request, limit) - # context['form'] = form + context['pagination_form'] = list_helpers.makePaginationForm(request, limit) list_templates = {'list_main': 'soc/list/list_main.html', 'list_pagination': 'soc/list/list_pagination.html',