app/soc/views/helper/redirects.py
changeset 1224 72dc2b552b10
parent 1146 839da7617496
child 1229 ec3768cbf369
--- 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' % (