Added getProcessRequestRedirect method to redirects.py.
authorLennard de Rijk <ljvderijk@gmail.com>
Sun, 25 Jan 2009 14:43:49 +0000
changeset 981 61a6a8d304dc
parent 980 3f3f7ec251bf
child 982 9efcedcfeb3e
Added getProcessRequestRedirect method to redirects.py. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/helper/redirects.py
--- a/app/soc/views/helper/redirects.py	Sun Jan 25 12:28:26 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Sun Jan 25 14:43:49 2009 +0000
@@ -94,6 +94,16 @@
   return result
 
 
+def getProcessRequestRedirect(entity, _):
+  """Returns the redirect for processing the specified request entity
+  """
+
+  result = '/%s/process_request/%s/%s' % (
+      entity.role, entity.scope_path, entity.link_id)
+
+  return result
+
+
 def getSelectRedirect(entity, params):
   """Returns the pick redirect for the specified entity.
   """