@check_job_permission
def tasks(request, job):
 ttypes = request.GET.get('tasktype')
 tstates = request.GET.get('taskstate')
 ttext = request.GET.get('tasktext')
 pagenum = int(request.GET.get('page', 1))
 pagenum = (((pagenum > 0) and pagenum) or 1)
 filters = {'task_types': ((ttypes and set(ttypes.split(','))) or None), 'task_states': ((tstates and set(tstates.split(','))) or None), 'task_text': ttext, 'pagenum': pagenum}
 jt = get_api(request.user, request.jt)
 task_list = jt.get_tasks(job.jobId, **filters)
 filter_params = copy_query_dict(request.GET, ('tasktype', 'taskstate', 'tasktext')).urlencode()
 return render('tasks.mako', request, {'request': request, 'filter_params': filter_params, 'job': job, 'task_list': task_list, 'tasktype': ttypes, 'taskstate': tstates, 'tasktext': ttext})

@ check_job_permission def tasks ( request , job ) : ttypes = request . GET . get ( 'tasktype' ) tstates = request . GET . get ( 'taskstate' ) ttext = request . GET . get ( 'tasktext' ) pagenum = int ( request . GET . get ( 'page' , 1 ) ) pagenum = ( ( ( pagenum > 0 ) and pagenum ) or 1 ) filters = { 'task_types' : ( ( ttypes and set ( ttypes . split ( ',' ) ) ) or None ) , 'task_states' : ( ( tstates and set ( tstates . split ( ',' ) ) ) or None ) , 'task_text' : ttext , 'pagenum' : pagenum } jt = get_api ( request . user , request . jt ) task_list = jt . get_tasks ( job . jobId , ** filters ) filter_params = copy_query_dict ( request . GET , ( 'tasktype' , 'taskstate' , 'tasktext' ) ) . urlencode ( ) return render ( 'tasks.mako' , request , { 'request' : request , 'filter_params' : filter_params , 'job' : job , 'task_list' : task_list , 'tasktype' : ttypes , 'taskstate' : tstates , 'tasktext' : ttext } )
we get here from /jobs/job/tasks?filterargs .