equal
deleted
inserted
replaced
147 return http.HttpResponseRedirect('/user/roles') |
147 return http.HttpResponseRedirect('/user/roles') |
148 |
148 |
149 # put the entity in the context |
149 # put the entity in the context |
150 context['entity'] = request_entity |
150 context['entity'] = request_entity |
151 context['module_name'] = params['module_name'] |
151 context['module_name'] = params['module_name'] |
|
152 context['invite_accepted_redirect'] = ( |
|
153 redirects.getInviteAcceptedRedirect(entity, self._params)) |
152 |
154 |
153 #display the invite processing page using the appropriate template |
155 #display the invite processing page using the appropriate template |
154 template = params['invite_processing_template'] |
156 template = params['invite_processing_template'] |
155 |
157 |
156 return responses.respond(request, template, context=context) |
158 return responses.respond(request, template, context=context) |
178 # only select the Invites for this user that haven't been handled yet |
180 # only select the Invites for this user that haven't been handled yet |
179 filter = {'link_id': user_entity.link_id, |
181 filter = {'link_id': user_entity.link_id, |
180 'state' : 'group_accepted'} |
182 'state' : 'group_accepted'} |
181 |
183 |
182 uh_params = params.copy() |
184 uh_params = params.copy() |
183 uh_params['list_action'] = (redirects.inviteProcessRedirect, None) |
185 uh_params['list_action'] = (redirects.getInviteProcessRedirect, None) |
184 uh_params['list_description'] = ugettext_lazy( |
186 uh_params['list_description'] = ugettext_lazy( |
185 "An overview of your unhandled invites.") |
187 "An overview of your unhandled invites.") |
186 |
188 |
187 uh_list = helper.lists.getListContent( |
189 uh_list = helper.lists.getListContent( |
188 request, uh_params, filter, 0) |
190 request, uh_params, filter, 0) |