Added new redirect for the new list views for group_app's.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 08 Feb 2009 23:49:29 +0000
changeset 1254 6be0286ef003
parent 1253 455c4d320ec4
child 1255 9fe8c6c54933
Added new redirect for the new list views for group_app's. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- 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.