# HG changeset patch # User Sverre Rabbelier # Date 1234642937 0 # Node ID a666374587df61c66a56b18738d3b8f55472847a # Parent 5153bd89147f4c1eed4083a28139b62ba481bdb2 Add a getListRedirect and getListPublicRedirect function Patch by: Sverre Rabbelier diff -r 5153bd89147f -r a666374587df app/soc/views/helper/redirects.py --- 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. """