equal
deleted
inserted
replaced
23 ] |
23 ] |
24 |
24 |
25 |
25 |
26 import os |
26 import os |
27 |
27 |
|
28 from django import forms |
28 from django import http |
29 from django import http |
29 from django import forms |
|
30 from django.utils import simplejson |
30 from django.utils import simplejson |
31 from django.utils.translation import ugettext |
31 from django.utils.translation import ugettext |
32 |
32 |
33 from soc.logic import allocations |
33 from soc.logic import allocations |
34 from soc.logic import cleaning |
34 from soc.logic import cleaning |
167 access_type : the name of the access type which should be checked |
167 access_type : the name of the access type which should be checked |
168 page_name: the page name displayed in templates as page and header title |
168 page_name: the page name displayed in templates as page and header title |
169 params: a dict with params for this View, not used |
169 params: a dict with params for this View, not used |
170 """ |
170 """ |
171 |
171 |
172 program = program_logic.logic.getFromKeyFields(kwargs) |
172 program = program_logic.logic.getFromKeyFieldsOr404(kwargs) |
173 slots = program.slots |
173 slots = program.slots |
174 |
174 |
175 filter = { |
175 filter = { |
176 'scope': program, |
176 'scope': program, |
177 'status': 'active', |
177 'status': 'active', |
241 org_params['list_template'] = 'soc/program/allocation/allocation.html' |
241 org_params['list_template'] = 'soc/program/allocation/allocation.html' |
242 org_params['list_heading'] = 'soc/program/allocation/heading.html' |
242 org_params['list_heading'] = 'soc/program/allocation/heading.html' |
243 org_params['list_row'] = 'soc/program/allocation/row.html' |
243 org_params['list_row'] = 'soc/program/allocation/row.html' |
244 org_params['list_pagination'] = 'soc/list/no_pagination.html' |
244 org_params['list_pagination'] = 'soc/list/no_pagination.html' |
245 |
245 |
246 program = program_logic.logic.getFromKeyFields(kwargs) |
246 program = program_logic.logic.getFromKeyFieldsOr404(kwargs) |
247 |
247 |
248 filter = { |
248 filter = { |
249 'scope': program, |
249 'scope': program, |
250 'status': 'active', |
250 'status': 'active', |
251 } |
251 } |