Added getProcessRequestRedirect method to redirects.py.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- 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.
"""