Пример #1
0
def show_license_list(context, object_list, sort="license_sort"):
    request = context['request']
    web = webs.license_web()
    dict = defaults(context)
    dict['table'] = tables.license(request, web, object_list,request.GET.get(sort))
    dict['rows'] = dict['table'].rows
    dict['web'] = web
    dict['sort'] = sort
    return dict
Пример #2
0
def license_list(request):
    web = webs.license_web()
    filter = filters.license(request.GET or None)
    table = tables.license(request, web, filter.qs, order_by=request.GET.get('sort'))
    return web.object_list(request, filter.form, table)