Added a new redirect for apply accesstype.
authorLennard de Rijk <ljvderijk@gmail.com>
Thu, 05 Feb 2009 22:13:49 +0000
changeset 1224 72dc2b552b10
parent 1223 aca77e2cc8f7
child 1225 1d5c58e24fd3
Added a new redirect for apply accesstype. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Thu Feb 05 22:13:12 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Thu Feb 05 22:13:49 2009 +0000
@@ -26,6 +26,15 @@
 from google.appengine.ext import db
 
 
+def getApplyRedirect(entity, params):
+  """Returns the apply redirect for the specified entity.
+  """
+
+  result ='/%s/apply/%s' % (
+      params['url_name'], entity.key().name())
+
+  return result
+
 def getInviteRedirect(entity, params):
   """Returns the invitation redirect for the specified entity.
   """
@@ -37,7 +46,7 @@
 
 
 def getCreateRedirect(entity, params):
-  """Returns the create program redirect for the specified entity.
+  """Returns the create redirect for the specified entity.
   """
 
   result ='/%s/create/%s' % (