Added list proposals redirect.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 24 Feb 2009 19:54:36 +0000
changeset 1487 d18c71f4fabe
parent 1486 c417a4188e73
child 1488 4b7cec48e26c
Added list proposals redirect. This is used to list student proposals directed to one organization. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Tue Feb 24 19:51:40 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Tue Feb 24 19:54:36 2009 +0000
@@ -155,6 +155,17 @@
   return result
 
 
+def getListProposalsRedirect(entity, params):
+  """Returns the redirect for the List page for the given
+  Org entity and Org View params.
+  """
+
+  result = '/%s/list_proposals/%s' % (
+      params['url_name'], entity.key().name())
+
+  return result
+
+
 def getListRequestsRedirect(entity, params):
   """Returns the redirect for the List Requests paged for the given
   Group entity and Group View params.