equal
deleted
inserted
replaced
21 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
21 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
22 ] |
22 ] |
23 |
23 |
24 |
24 |
25 import soc.logic |
25 import soc.logic |
|
26 from soc.logic import models |
26 from soc.logic.site import id_user |
27 from soc.logic.site import id_user |
27 import soc.models.user |
28 import soc.models.user |
28 from soc.views import simple |
29 from soc.views import simple |
29 from soc.views import helper |
30 from soc.views import helper |
30 from soc.views.helper import access |
31 from soc.views.helper import access |
59 |
60 |
60 offset, limit = helper.lists.cleanListParameters( |
61 offset, limit = helper.lists.cleanListParameters( |
61 offset=request.GET.get('offset'), limit=request.GET.get('limit')) |
62 offset=request.GET.get('offset'), limit=request.GET.get('limit')) |
62 |
63 |
63 # Fetch one more to see if there should be a 'next' link |
64 # Fetch one more to see if there should be a 'next' link |
64 users = soc.logic.user_logic.getForLimitAndOffset(limit + 1, offset=offset) |
65 users = models.user.logic.getForLimitAndOffset(limit + 1, offset=offset) |
65 |
66 |
66 context['pagination_form'] = helper.lists.makePaginationForm(request, limit) |
67 context['pagination_form'] = helper.lists.makePaginationForm(request, limit) |
67 |
68 |
68 list_templates = {'list_main': 'soc/list/list_main.html', |
69 list_templates = {'list_main': 'soc/list/list_main.html', |
69 'list_pagination': 'soc/list/list_pagination.html', |
70 'list_pagination': 'soc/list/list_pagination.html', |