equal
deleted
inserted
replaced
70 DEF_CREATED_ORGS_MSG_FMT = ugettext("These organizations have been" |
70 DEF_CREATED_ORGS_MSG_FMT = ugettext("These organizations have been" |
71 " accepted into %(name)s and have completed their organization" |
71 " accepted into %(name)s and have completed their organization" |
72 " profiles. You can learn more about each organization by" |
72 " profiles. You can learn more about each organization by" |
73 " visiting the links below.") |
73 " visiting the links below.") |
74 |
74 |
|
75 DEF_SLOTS_ALLOCATION_MSG = ugettext("Use this view to assign slots.") |
|
76 |
75 def __init__(self, params=None): |
77 def __init__(self, params=None): |
76 """Defines the fields and methods required for the base View class |
78 """Defines the fields and methods required for the base View class |
77 to provide the user with list, public, create, edit and delete views. |
79 to provide the user with list, public, create, edit and delete views. |
78 |
80 |
79 Params: |
81 Params: |
350 org_params['list_row'] = 'soc/program/allocation/row.html' |
352 org_params['list_row'] = 'soc/program/allocation/row.html' |
351 org_params['list_pagination'] = 'soc/list/no_pagination.html' |
353 org_params['list_pagination'] = 'soc/list/no_pagination.html' |
352 |
354 |
353 program = program_logic.logic.getFromKeyFieldsOr404(kwargs) |
355 program = program_logic.logic.getFromKeyFieldsOr404(kwargs) |
354 |
356 |
|
357 description = self.DEF_SLOTS_ALLOCATION_MSG |
|
358 |
355 filter = { |
359 filter = { |
356 'scope': program, |
360 'scope': program, |
357 'status': 'active', |
361 'status': 'active', |
358 } |
362 } |
359 |
363 |
360 content = lists.getListContent(request, org_params, filter=filter) |
364 content = self._getAcceptedOrgsList(description, org_params, filter, False) |
|
365 |
361 contents = [content] |
366 contents = [content] |
362 |
367 |
363 return_url = "http://%(host)s%(index)s" % { |
368 return_url = "http://%(host)s%(index)s" % { |
364 'host' : os.environ['HTTP_HOST'], |
369 'host' : os.environ['HTTP_HOST'], |
365 'index': redirects.getSlotsRedirect(program, params) |
370 'index': redirects.getSlotsRedirect(program, params) |