Added a new redirect for apply accesstype.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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' % (