Parameterized the role view manage redirect.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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