# HG changeset patch # User Lennard de Rijk # Date 1239093896 0 # Node ID 1b3830abcdf745e5f6369f5a596a5f559df770ca # Parent edc9b84629a70853853a6e1fac7a9fffb51b94bb Added new redirect method to be used for StudentProjects. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r edc9b84629a7 -r 1b3830abcdf7 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. """