# HG changeset patch # User Lennard de Rijk # Date 1232894629 0 # Node ID 61a6a8d304dc6b866de5539137ef879a3988f3c7 # Parent 3f3f7ec251bf14f6ba55afae971bc0ab04b76270 Added getProcessRequestRedirect method to redirects.py. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 3f3f7ec251bf -r 61a6a8d304dc 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. """