equal
deleted
inserted
replaced
264 inc_req_params['list_action'] = (redirects.getProcessRequestRedirect, None) |
264 inc_req_params['list_action'] = (redirects.getProcessRequestRedirect, None) |
265 inc_req_params['list_description'] = ugettext( |
265 inc_req_params['list_description'] = ugettext( |
266 "An overview of the %(name)s's incoming requests." % params) |
266 "An overview of the %(name)s's incoming requests." % params) |
267 |
267 |
268 inc_req_content = list_helper.getListContent( |
268 inc_req_content = list_helper.getListContent( |
269 request, inc_req_params, filter, 0) |
269 request, inc_req_params, filter, idx=0) |
270 |
270 |
271 # list all outstanding invites |
271 # list all outstanding invites |
272 filter = { |
272 filter = { |
273 'scope': group_entity, |
273 'scope': group_entity, |
274 'role': role_names, |
274 'role': role_names, |
282 out_inv_params['list_action'] = (redirects.getProcessRequestRedirect, None) |
282 out_inv_params['list_action'] = (redirects.getProcessRequestRedirect, None) |
283 out_inv_params['list_description'] = ugettext( |
283 out_inv_params['list_description'] = ugettext( |
284 "An overview of the %(name)s's outstanding invites." % params) |
284 "An overview of the %(name)s's outstanding invites." % params) |
285 |
285 |
286 out_inv_content = list_helper.getListContent( |
286 out_inv_content = list_helper.getListContent( |
287 request, out_inv_params, filter, 1) |
287 request, out_inv_params, filter, idx=1) |
288 |
288 |
289 # list all ignored requests |
289 # list all ignored requests |
290 filter = { |
290 filter = { |
291 'scope': group_entity, |
291 'scope': group_entity, |
292 'role': role_names, |
292 'role': role_names, |
300 ignored_params['list_action'] = (redirects.getProcessRequestRedirect, None) |
300 ignored_params['list_action'] = (redirects.getProcessRequestRedirect, None) |
301 ignored_params['list_description'] = ugettext( |
301 ignored_params['list_description'] = ugettext( |
302 "An overview of the %(name)s's ignored requests." % params) |
302 "An overview of the %(name)s's ignored requests." % params) |
303 |
303 |
304 ignored_content = list_helper.getListContent( |
304 ignored_content = list_helper.getListContent( |
305 request, ignored_params, filter, 2) |
305 request, ignored_params, filter, idx=2) |
306 |
306 |
307 contents = [inc_req_content, out_inv_content, ignored_content] |
307 contents = [inc_req_content, out_inv_content, ignored_content] |
308 |
308 |
309 return self._list(request, params, contents, page_name) |
309 return self._list(request, params, contents, page_name) |
310 |
310 |
350 list_params['list_description'] = ugettext( |
350 list_params['list_description'] = ugettext( |
351 "An overview of the %s for this %s." % ( |
351 "An overview of the %s for this %s." % ( |
352 list_params['name_plural'], params['name'])) |
352 list_params['name_plural'], params['name'])) |
353 |
353 |
354 new_list_content = list_helper.getListContent( |
354 new_list_content = list_helper.getListContent( |
355 request, list_params, filter, index) |
355 request, list_params, filter, idx=index) |
356 |
356 |
357 contents += [new_list_content] |
357 contents += [new_list_content] |
358 |
358 |
359 index += 1 |
359 index += 1 |
360 |
360 |