# HG changeset patch # User Lennard de Rijk # Date 1234899234 0 # Node ID ee386b5b56d7d29a150d808427d8be1761741627 # Parent edcb2add693457633cddf7a08270aeaa3ab24f56 Parameterized the role view manage redirect. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r edcb2add6934 -r ee386b5b56d7 app/soc/views/models/role.py --- a/app/soc/views/models/role.py Tue Feb 17 19:32:53 2009 +0000 +++ b/app/soc/views/models/role.py Tue Feb 17 19:33:54 2009 +0000 @@ -128,6 +128,7 @@ new_params['extra_django_patterns'] = patterns new_params['scope_redirect'] = redirects.getInviteRedirect + new_params['manage_redirect'] = redirects.getListRolesRedirect new_params['create_template'] = 'soc/role/edit.html' new_params['edit_template'] = 'soc/role/edit.html' @@ -413,7 +414,7 @@ role_entity = logic.getForFields(kwargs, unique=True) # get the redirect for the cancel button or when the resignation is done - redirect = redirects.getListRolesRedirect(role_entity.scope, + redirect = params['manage_redirect'](role_entity.scope, params['group_view'].getParams()) # check to see if resign is true