43 return alt_response |
43 return alt_response |
44 |
44 |
45 offset = request.GET.get('offset') |
45 offset = request.GET.get('offset') |
46 limit = request.GET.get('limit') |
46 limit = request.GET.get('limit') |
47 |
47 |
48 offset, limit = list_helpers.getListParemeters(offset, limit) |
48 offset, limit = list_helpers.getListParemeters(offset=offset, limit=limit) |
49 |
49 |
50 users = id_user.getUsersForOffsetAndLimit(offset, limit) |
50 users = id_user.getUsersForOffsetAndLimit(offset=offset, limit=limit) |
51 |
51 |
52 list_templates = {'list_main': 'soc/list/list_main.html', |
52 list_templates = {'list_main': 'soc/list/list_main.html', |
53 'list_pagination': 'soc/list/list_pagination.html', |
53 'list_pagination': 'soc/list/list_pagination.html', |
54 'list_row': 'soc/site/user/list/user_row.html', |
54 'list_row': 'soc/site/user/list/user_row.html', |
55 'list_heading': 'soc/site/user/list/user_heading.html'} |
55 'list_heading': 'soc/site/user/list/user_heading.html'} |
56 |
56 |
57 context = list_helpers.setList(request, context, users, |
57 context = list_helpers.setList( |
58 offset, limit, list_templates) |
58 request, context, users, |
|
59 offset=offset, limit=limit, list_templates=list_templates) |
59 |
60 |
60 return response_helpers.respond(request, template, context) |
61 return response_helpers.respond(request, template, context) |
61 |
62 |