--- a/app/soc/views/site/docs/list.py Fri Oct 03 07:03:11 2008 +0000
+++ b/app/soc/views/site/docs/list.py Fri Oct 03 17:21:41 2008 +0000
@@ -52,18 +52,14 @@
if alt_response:
return alt_response
- offset = request.GET.get('offset')
- limit = request.GET.get('limit')
-
- offset, limit = list_helpers.getListParemeters(offset=offset, limit=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
docs = works.getWorksForLimitAndOffset(
limit + 1, offset=offset, cls=soc.models.document.Document)
- # 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',