[Mpuls-commits] r1113 - wasko/branches/2.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 10:06:47 CET 2010


Author: torsten
Date: 2010-02-02 10:06:45 +0100 (Tue, 02 Feb 2010)
New Revision: 1113

Modified:
   wasko/branches/2.0/waskaweb/controllers/document.py
Log:
* waskaweb/controllers/document.py (DocumentController.caseShow):
  Deleted. Not calles from anywhere now.


Modified: wasko/branches/2.0/waskaweb/controllers/document.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/document.py	2010-02-02 09:05:12 UTC (rev 1112)
+++ wasko/branches/2.0/waskaweb/controllers/document.py	2010-02-02 09:06:45 UTC (rev 1113)
@@ -130,23 +130,6 @@
             redirect_to(controller="case", action="documents", id=case) 
             #return render('/tests/trace.mako')
 
-    @checkRole(('admin_ka', 'cm_ka'))
-    def caseShow(self, id):
-        id = self._checkInt(id)
-        try:
-            document = Document(id)
-            document.load(True)
-            data = paste.fileapp.DataApp(
-                document.data,
-                content_type=document.mime,
-                cache_control='must-revalidate',
-                pragma='public')
-            return data(request.environ, self.start_response)
-        except:
-            traceback.print_exc(file=sys.stderr)
-            redirect_to(controller="case", action="documents") 
-            #return render('/tests/trace.mako')
-
     @checkRole('admin_ka')
     def globalDelete(self, id, confirmed='0'):
         id        = self._checkInt(id)



More information about the Mpuls-commits mailing list