Added new redirect for the new list views for group_app's.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/redirects.py Sun Feb 08 22:57:23 2009 +0000
+++ b/app/soc/views/helper/redirects.py Sun Feb 08 23:49:29 2009 +0000
@@ -97,6 +97,7 @@
"""Returns the redirect to the review_overview using the
keyname of the specified entity.
"""
+
return '/%s/review_overview/%s' % (
params['url_name'], entity.key().name())
@@ -141,6 +142,16 @@
return result
+def getListSelfRedirect(entity, params):
+ """Returns the redirect for list_self access type.
+ """
+
+ result = '/%s/list_self/%s' % (
+ params['url_name'], entity.key().name())
+
+ return result
+
+
def getListRolesRedirect(entity, params):
"""Returns the redirect for the List Roles paged for the given
Group entity and Group View params.