equal
deleted
inserted
replaced
65 Any exceptions that django.template.loader.render_to_string() or |
65 Any exceptions that django.template.loader.render_to_string() or |
66 django.http.HttpResponse() might raise. |
66 django.http.HttpResponse() might raise. |
67 """ |
67 """ |
68 |
68 |
69 if not context: |
69 if not context: |
|
70 from soc.views.helper import params |
70 context = getUniversalContext(request) |
71 context = getUniversalContext(request) |
|
72 useJavaScript(context, params.DEF_JS_USES_LIST) |
71 |
73 |
72 if response_args is None: |
74 if response_args is None: |
73 response_args = {} |
75 response_args = {} |
74 |
76 |
75 response_args['content'] = response_args.get( |
77 response_args['content'] = response_args.get( |
175 """ |
177 """ |
176 if not context: |
178 if not context: |
177 context = error.context |
179 context = error.context |
178 |
180 |
179 if not context: |
181 if not context: |
|
182 from soc.views.helper import params |
180 context = getUniversalContext(request) |
183 context = getUniversalContext(request) |
|
184 useJavaScript(context, params.DEF_JS_USES_LIST) |
181 |
185 |
182 if not template: |
186 if not template: |
183 template = [] |
187 template = [] |
184 |
188 |
185 # make a list of possible "sibling" templates, then append a default |
189 # make a list of possible "sibling" templates, then append a default |