equal
deleted
inserted
replaced
393 |
393 |
394 ap_params = student_project_view.view.getParams().copy() # accepted projects |
394 ap_params = student_project_view.view.getParams().copy() # accepted projects |
395 |
395 |
396 # define the list redirect action to show the notification |
396 # define the list redirect action to show the notification |
397 ap_params['list_action'] = (redirects.getPublicRedirect, ap_params) |
397 ap_params['list_action'] = (redirects.getPublicRedirect, ap_params) |
398 ap_params['list_description'] = self.DEF_ACCEPTED_PROJECTS_MSG_FMT %( |
398 ap_params['list_description'] = self.DEF_ACCEPTED_PROJECTS_MSG_FMT % ( |
399 entity.name) |
399 entity.name) |
400 ap_params['list_heading'] = 'soc/student_project/list/heading.html' |
400 ap_params['list_heading'] = 'soc/student_project/list/heading.html' |
401 ap_params['list_row'] = 'soc/student_project/list/row.html' |
401 ap_params['list_row'] = 'soc/student_project/list/row.html' |
402 |
402 |
403 # only show projects that have not failed |
403 # only show projects that have not failed |
404 filter = {'scope': entity, |
404 filter = {'scope': entity, |
413 contents.append(ap_list) |
413 contents.append(ap_list) |
414 |
414 |
415 # construct the list and put it into the context |
415 # construct the list and put it into the context |
416 context['list'] = soc.logic.lists.Lists(contents) |
416 context['list'] = soc.logic.lists.Lists(contents) |
417 |
417 |
418 return super(View, self)._public(request=request, entity=entity, context=context) |
418 return super(View, self)._public(request=request, |
|
419 entity=entity, context=context) |
419 |
420 |
420 def _getExtraMenuItems(self, role_description, params=None): |
421 def _getExtraMenuItems(self, role_description, params=None): |
421 """Used to create the specific Organization menu entries. |
422 """Used to create the specific Organization menu entries. |
422 |
423 |
423 For args see group.View._getExtraMenuItems(). |
424 For args see group.View._getExtraMenuItems(). |