[ui] Fix source datasets paging

This commit is contained in:
amercader 2012-03-07 15:03:33 +00:00
parent f482eb607c
commit 9fcaefe8ff
1 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ from ckanext.harvest.lib import create_harvest_source, edit_harvest_source, \
get_harvest_source, get_harvest_sources, \
create_harvest_job, get_registered_harvesters_info, \
get_harvest_object
from ckan.lib.helpers import Page
from ckan.lib.helpers import Page,pager_url
import logging
log = logging.getLogger(__name__)
@ -121,7 +121,8 @@ class ViewController(BaseController):
c.page = Page(
collection=c.source['status']['packages'],
page=request.params.get('page', 1),
items_per_page=20
items_per_page=20,
url=pager_url
)
return render('source/read.html')