Added new redirect method to be used for StudentProjects.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 07 Apr 2009 08:44:56 +0000
changeset 2114 1b3830abcdf7
parent 2113 edc9b84629a7
child 2115 fafd021def7e
Added new redirect method to be used for StudentProjects. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Tue Apr 07 08:43:50 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Tue Apr 07 08:44:56 2009 +0000
@@ -235,6 +235,16 @@
   return result
 
 
+def getManageOverviewRedirect(entity, params):
+  """Returns the redirect for the manage overview view of the given entity.
+  """
+
+  result = '/%s/manage_overview/%s' % (
+      params['url_name'], entity.key().name())
+
+  return result
+
+
 def getSelectRedirect(params):
   """Returns the pick redirect for the specified entity.
   """