equal
deleted
inserted
replaced
153 # only select the requests for this user that haven't been handled yet |
153 # only select the requests for this user that haven't been handled yet |
154 filter = {'link_id': user_entity.link_id, |
154 filter = {'link_id': user_entity.link_id, |
155 'group_accepted' : True} |
155 'group_accepted' : True} |
156 |
156 |
157 uh_params = params.copy() |
157 uh_params = params.copy() |
158 uh_params['list_action'] = (self.inviteAcceptedRedirect, None) |
158 uh_params['list_action'] = (self._logic.inviteAcceptedRedirect, None) |
159 uh_params['list_description'] = ugettext_lazy( |
159 uh_params['list_description'] = ugettext_lazy( |
160 "An overview of your unhandled requests") |
160 "An overview of your unhandled requests") |
161 |
161 |
162 uh_list = helper.lists.getListContent(request, uh_params, self._logic, filter, 0) |
162 uh_list = helper.lists.getListContent(request, uh_params, self._logic, filter, 0) |
163 |
163 |
177 # fill contents with all the needed lists |
177 # fill contents with all the needed lists |
178 contents = [uh_list,ar_list] |
178 contents = [uh_list,ar_list] |
179 |
179 |
180 # call the _list method from base to display the list |
180 # call the _list method from base to display the list |
181 return self._list(request, params, contents, page_name) |
181 return self._list(request, params, contents, page_name) |
182 |
|
183 def inviteAcceptedRedirect(self, entity, _): |
|
184 """Returns the redirect for accepting a request |
|
185 """ |
|
186 |
|
187 return '/%s/create/%s/%s' % ( |
|
188 entity.role, entity.scope_path, entity.link_id) |
|
189 |
182 |
190 def _editSeed(self, request, seed): |
183 def _editSeed(self, request, seed): |
191 """See base.View._editGet(). |
184 """See base.View._editGet(). |
192 """ |
185 """ |
193 |
186 |