Added redirect for the student proposal view.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/redirects.py Tue Feb 24 19:43:51 2009 +0000
+++ b/app/soc/views/helper/redirects.py Tue Feb 24 19:49:27 2009 +0000
@@ -248,6 +248,16 @@
params['url_name'], entity.key().name())
+def getStudentProposalRedirect(entity, params):
+ """Returns the student proposal redirect for the given org and student.
+ """
+
+ result ='/%s/apply/%s?organization=%s' % (
+ params['url_name'], params['student_key'], entity.link_id)
+
+ return result
+
+
def getCreateDocumentRedirect(entity, prefix):
"""Returns the redirect for new documents.
"""