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.helper import access |
|
27 from soc.logic.site import id_user |
26 from soc.logic.site import id_user |
|
27 import soc.models.user |
28 from soc.views import simple |
28 from soc.views import simple |
29 from soc.views import helper |
29 from soc.views import helper |
|
30 from soc.views.helper import access |
30 import soc.views.helper.lists |
31 import soc.views.helper.lists |
31 import soc.views.helper.responses |
32 import soc.views.helper.responses |
32 |
33 import soc.views.out_of_band |
33 import soc.models.user |
|
34 |
34 |
35 |
35 |
36 DEF_SITE_USER_LIST_ALL_TMPL = 'soc/site/user/list/all.html' |
36 DEF_SITE_USER_LIST_ALL_TMPL = 'soc/site/user/list/all.html' |
|
37 |
37 |
38 |
38 def all(request, template=DEF_SITE_USER_LIST_ALL_TMPL): |
39 def all(request, template=DEF_SITE_USER_LIST_ALL_TMPL): |
39 """Show a list of all Users (limit rows per page). |
40 """Show a list of all Users (limit rows per page). |
40 |
41 |
41 Args: |
42 Args: |
48 be filled out, or a redirect to the correct view in the interface. |
49 be filled out, or a redirect to the correct view in the interface. |
49 """ |
50 """ |
50 |
51 |
51 try: |
52 try: |
52 access.checkIsDeveloper(request) |
53 access.checkIsDeveloper(request) |
53 except soc.logic.out_of_band.AccessViolationResponse, alt_response: |
54 except soc.views.out_of_band.AccessViolationResponse, alt_response: |
54 return alt_response.response() |
55 return alt_response.response() |
55 |
56 |
56 # create default template context for use with any templates |
57 # create default template context for use with any templates |
57 context = helper.responses.getUniversalContext(request) |
58 context = helper.responses.getUniversalContext(request) |
58 |
59 |