Example #1
0
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
Example #2
0
def task_add(request):
    web = webs.task_web()
    return web.object_add(request)
Example #3
0
def task_delete(request,object_id):
    web = webs.task_web()
    object = get_object_or_404(models.task, pk=object_id)
    return web.object_delete(request, object)
Example #4
0
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)