Add a getListRedirect and getListPublicRedirect function
Patch by: Sverre Rabbelier
--- a/app/soc/views/helper/redirects.py Sat Feb 14 20:21:51 2009 +0000
+++ b/app/soc/views/helper/redirects.py Sat Feb 14 20:22:17 2009 +0000
@@ -71,6 +71,22 @@
params['url_name'], entity.key().name())
+def getListRedirect(entity, params):
+ """Returns the public redirect for the specified entity.
+ """
+
+ return '/%s/list/%s' % (
+ params['url_name'], entity.key().name())
+
+
+def getPublicListRedirect(entity, params):
+ """Returns the public redirect for the specified entity.
+ """
+
+ return '/%s/list_public/%s' % (
+ params['url_name'], entity.key().name())
+
+
def getExportRedirect(entity, params):
"""Returns the export redirect for the specified entity.
"""