equal
deleted
inserted
replaced
20 __authors__ = [ |
20 __authors__ = [ |
21 '"Chen Lunpeng" <forever.clp@gmail.com>', |
21 '"Chen Lunpeng" <forever.clp@gmail.com>', |
22 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
22 '"Pawel Solyga" <pawel.solyga@gmail.com>', |
23 ] |
23 ] |
24 |
24 |
25 |
|
26 import itertools |
|
27 |
25 |
28 from soc.logic import dicts |
26 from soc.logic import dicts |
29 from soc.logic.models.user import logic as user_logic |
27 from soc.logic.models.user import logic as user_logic |
30 |
28 |
31 import soc.views.helper.forms |
29 import soc.views.helper.forms |
164 more = len(data) > limit |
162 more = len(data) > limit |
165 |
163 |
166 if more: |
164 if more: |
167 del data[limit:] |
165 del data[limit:] |
168 |
166 |
169 newest = next = prev = export_link ='' |
167 newest = next = prev = export_link = '' |
170 |
168 |
171 base_params = dict(i for i in request.GET.iteritems() if |
169 base_params = dict(i for i in request.GET.iteritems() if |
172 i[0].startswith('offset_') or i[0].startswith('limit_')) |
170 i[0].startswith('offset_') or i[0].startswith('limit_')) |
173 |
171 |
174 if params.get('list_key_order'): |
172 if params.get('list_key_order'): |