Added an assign slots redirects
authorSverre Rabbelier <srabbelier@gmail.com>
Tue, 17 Mar 2009 13:25:55 +0000
changeset 1910 cb105d1f51b8
parent 1909 04be4e851ef0
child 1911 87c3e62b28dc
Added an assign slots redirects Patch by: Sverre Rabbelier
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Tue Mar 17 13:22:00 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Tue Mar 17 13:25:55 2009 +0000
@@ -280,13 +280,21 @@
 
 
 def getSlotsRedirect(entity, params):
-  """Returns the student proposal redirect for the given org and student.
+  """Returns the slots redirect for the specified entity.
   """
 
   return'/%s/slots/%s' % (
       params['url_name'], entity.key().name())
 
 
+def getSlotsRedirect(entity, params):
+  """Returns the assign slots redirect for the specified entity.
+  """
+
+  return'/%s/assign_slots/%s' % (
+      params['url_name'], entity.key().name())
+
+
 def getCreateDocumentRedirect(entity, prefix):
   """Returns the redirect for new documents.
   """