app/soc/views/models/request.py
changeset 1667 95bc81b4cd5c
parent 1637 17f2fd8091c3
child 1686 d9cc9f8ca19f
equal deleted inserted replaced
1666:cdb7e5581694 1667:95bc81b4cd5c
   205     uh_params['list_action'] = (redirects.getInviteProcessRedirect, None)
   205     uh_params['list_action'] = (redirects.getInviteProcessRedirect, None)
   206     uh_params['list_description'] = ugettext(
   206     uh_params['list_description'] = ugettext(
   207         "An overview of your unhandled invites.")
   207         "An overview of your unhandled invites.")
   208 
   208 
   209     uh_list = helper.lists.getListContent(
   209     uh_list = helper.lists.getListContent(
   210         request, uh_params, filter, 0)
   210         request, uh_params, filter, idx=0)
   211 
   211 
   212     # construct the Open Requests list
   212     # construct the Open Requests list
   213 
   213 
   214     # only select the requests from the user
   214     # only select the requests from the user
   215     # that haven't been accepted by an admin yet
   215     # that haven't been accepted by an admin yet
   219     ar_params = params.copy()
   219     ar_params = params.copy()
   220     ar_params['list_description'] = ugettext(
   220     ar_params['list_description'] = ugettext(
   221         "List of your pending requests.")
   221         "List of your pending requests.")
   222 
   222 
   223     ar_list = helper.lists.getListContent(
   223     ar_list = helper.lists.getListContent(
   224         request, ar_params, filter, 1)
   224         request, ar_params, filter, idx=1)
   225 
   225 
   226     # fill contents with all the needed lists
   226     # fill contents with all the needed lists
   227     contents = [uh_list, ar_list]
   227     contents = [uh_list, ar_list]
   228 
   228 
   229     # call the _list method from base to display the list
   229     # call the _list method from base to display the list