Added new redirect method to be used for StudentProjects.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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.
"""