app/soc/views/helper/redirects.py
changeset 1316 1ddf04976bee
parent 1308 35b75ffcbb37
child 1323 a666374587df
--- a/app/soc/views/helper/redirects.py	Sat Feb 14 15:56:46 2009 +0000
+++ b/app/soc/views/helper/redirects.py	Sat Feb 14 15:57:14 2009 +0000
@@ -224,6 +224,13 @@
   return '/document/create/%s/%s' % (prefix, entity.key().name())
 
 
+def getListDocumentsRedirect(entity, prefix):
+  """Returns the redirect for listing documents.
+  """
+
+  return '/document/list/%s/%s' % (prefix, entity.key().name())
+
+
 def getToSRedirect(presence):
   """Returns link to 'show' the ToS Document if it exists, None otherwise.