app/soc/views/site/docs/list.py
changeset 365 74dec172944e
parent 358 843d83b87282
child 374 9363b9dc2983
--- a/app/soc/views/site/docs/list.py	Thu Oct 16 23:26:58 2008 +0000
+++ b/app/soc/views/site/docs/list.py	Thu Oct 16 23:31:57 2008 +0000
@@ -23,9 +23,9 @@
 
 
 from soc.logic.models import work
-from soc.views import simple
 from soc.views import helper
 from soc.views.helper import access
+from soc.views.helper import decorators
 
 import soc.logic
 import soc.models.document
@@ -37,6 +37,7 @@
 DEF_SITE_DOCS_LIST_ALL_TMPL = 'soc/site/docs/list/all.html'
 
 
+@decorators.view
 def all(request, page=None, template=DEF_SITE_DOCS_LIST_ALL_TMPL):
   """Show a list of all Documents (limit rows per page).
   
@@ -77,4 +78,4 @@
       request, context, docs, 
       offset=offset, limit=limit, list_templates=list_templates)
 
-  return helper.responses.respond(request, template, context)
+  return helper.responses.respond(request, template, context)
\ No newline at end of file