Added getListRequestsRedirect to redirects.py.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/helper/redirects.py Sun Jan 25 15:09:10 2009 +0000
+++ b/app/soc/views/helper/redirects.py Sun Jan 25 16:17:33 2009 +0000
@@ -19,6 +19,7 @@
__authors__ = [
'"Sverre Rabbelier" <sverre@rabbelier.nl>',
+ '"Lennard de Rijk" <ljvderijk@gmail.com>',
]
@@ -94,6 +95,17 @@
return result
+def getListRequestsRedirect(entity, params):
+ """Returns the redirect for the List Requests paged for the given
+ Group entity and Group View params.
+ """
+
+ result = '/%s/list_requests/%s' % (
+ params['url_name'], entity.key().name())
+
+ return result
+
+
def getProcessRequestRedirect(entity, _):
"""Returns the redirect for processing the specified request entity
"""