app/soc/views/models/student_project.py
changeset 2715 afd5368af75c
parent 2711 4df8c11c36cb
child 2717 fdde098394a7
equal deleted inserted replaced
2714:f1e2afcde89f 2715:afd5368af75c
   261         'status': ['accepted', 'completed'],
   261         'status': ['accepted', 'completed'],
   262         }
   262         }
   263 
   263 
   264     ap_params = params.copy() # accepted projects
   264     ap_params = params.copy() # accepted projects
   265 
   265 
   266     ap_params['list_action'] = (redirects.getWithdrawProjectRedirect, ap_params)
   266     ap_params['list_action'] = (redirects.getWithdrawProjectRedirect,
       
   267                                 ap_params)
   267     ap_params['list_description'] = ugettext(
   268     ap_params['list_description'] = ugettext(
   268         "An overview of accepted and completed Projects.")
   269         "An overview of accepted and completed Projects."
       
   270         "Click on a project to withdraw it.")
   269 
   271 
   270     ap_list = lists.getListContent(
   272     ap_list = lists.getListContent(
   271         request, ap_params, fields, idx=0)
   273         request, ap_params, fields, idx=0)
   272 
   274 
   273     fields['status'] = ['withdrawn']
   275     fields['status'] = ['withdrawn']
   274 
   276 
   275     wp_params = params.copy() # withdrawn projects
   277     wp_params = params.copy() # withdrawn projects
   276 
   278 
   277     wp_params['list_action'] = (redirects.getAcceptProjectRedirect, wp_params)
   279     wp_params['list_action'] = (redirects.getAcceptProjectRedirect, wp_params)
   278     wp_params['list_description'] = ugettext(
   280     wp_params['list_description'] = ugettext(
   279         "An overview of withdrawn Projects.")
   281         "An overview of withdrawn Projects."
       
   282         "Click on a project to undo the withdrawal.")
   280 
   283 
   281     wp_list = lists.getListContent(
   284     wp_list = lists.getListContent(
   282         request, wp_params, fields, idx=1)
   285         request, wp_params, fields, idx=1)
   283 
   286 
   284     # fill contents with all the needed lists
   287     # fill contents with all the needed lists