def show_task_list(context, object_list, sort="task_sort"): request = context['request'] web = webs.task_web() dict = defaults(context) dict['table'] = tables.task(request, web, object_list,request.GET.get(sort)) dict['rows'] = dict['table'].rows dict['web'] = web dict['sort'] = sort return dict
def task_list(request): web = webs.task_web() filter = filters.task(request.GET or None) table = tables.task(request, web, filter.qs, order_by=request.GET.get('sort')) return web.object_list(request, filter.form, table)