equal
deleted
inserted
replaced
35 |
35 |
36 import soc.logic |
36 import soc.logic |
37 from soc.logic import out_of_band |
37 from soc.logic import out_of_band |
38 from soc.logic import validate |
38 from soc.logic import validate |
39 from soc.logic.site import id_user |
39 from soc.logic.site import id_user |
40 from soc.logic.helper import access |
|
41 from soc.views import simple |
40 from soc.views import simple |
42 from soc.views import helper |
41 from soc.views import helper |
|
42 from soc.views.helper import access |
|
43 import soc.views.out_of_band |
43 import soc.views.helper.forms |
44 import soc.views.helper.forms |
44 import soc.views.helper.responses |
45 import soc.views.helper.responses |
45 import soc.views.helper.templates |
46 import soc.views.helper.templates |
46 import soc.views.helper.widgets |
47 import soc.views.helper.widgets |
47 |
48 |
132 A subclass of django.http.HttpResponse with generated template. |
133 A subclass of django.http.HttpResponse with generated template. |
133 """ |
134 """ |
134 |
135 |
135 try: |
136 try: |
136 access.checkIsDeveloper(request) |
137 access.checkIsDeveloper(request) |
137 except soc.logic.out_of_band.AccessViolationResponse, alt_response: |
138 except soc.views.out_of_band.AccessViolationResponse, alt_response: |
138 return alt_response.response() |
139 return alt_response.response() |
139 |
140 |
140 # create default template context for use with any templates |
141 # create default template context for use with any templates |
141 context = helper.responses.getUniversalContext(request) |
142 context = helper.responses.getUniversalContext(request) |
142 |
143 |