equal
deleted
inserted
replaced
21 '"Todd Larsen" <tlarsen@google.com>', |
21 '"Todd Larsen" <tlarsen@google.com>', |
22 ] |
22 ] |
23 |
23 |
24 |
24 |
25 import soc.logic |
25 import soc.logic |
26 from soc.logic.helper import access |
26 import soc.models.document |
27 from soc.views import simple |
27 from soc.views import simple |
28 from soc.views import helper |
28 from soc.views import helper |
|
29 from soc.views.helper import access |
29 import soc.views.helper.lists |
30 import soc.views.helper.lists |
30 import soc.views.helper.responses |
31 import soc.views.helper.responses |
31 |
32 import soc.views.out_of_band |
32 import soc.models.document |
|
33 |
33 |
34 |
34 |
35 DEF_SITE_DOCS_LIST_ALL_TMPL = 'soc/site/docs/list/all.html' |
35 DEF_SITE_DOCS_LIST_ALL_TMPL = 'soc/site/docs/list/all.html' |
|
36 |
36 |
37 |
37 def all(request, template=DEF_SITE_DOCS_LIST_ALL_TMPL): |
38 def all(request, template=DEF_SITE_DOCS_LIST_ALL_TMPL): |
38 """Show a list of all Documents (limit rows per page). |
39 """Show a list of all Documents (limit rows per page). |
39 |
40 |
40 Args: |
41 Args: |
47 be filled out, or a redirect to the correct view in the interface. |
48 be filled out, or a redirect to the correct view in the interface. |
48 """ |
49 """ |
49 |
50 |
50 try: |
51 try: |
51 access.checkIsDeveloper(request) |
52 access.checkIsDeveloper(request) |
52 except soc.logic.out_of_band.AccessViolationResponse, alt_response: |
53 except soc.views.out_of_band.AccessViolationResponse, alt_response: |
53 return alt_response.response() |
54 return alt_response.response() |
54 |
55 |
55 # create default template context for use with any templates |
56 # create default template context for use with any templates |
56 context = helper.responses.getUniversalContext(request) |
57 context = helper.responses.getUniversalContext(request) |
57 |
58 |