[Mpuls-commits] r2145 - wasko/branches/2.0/jmdweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 25 10:08:13 CET 2010


Author: torsten
Date: 2010-03-25 10:08:13 +0100 (Thu, 25 Mar 2010)
New Revision: 2145

Modified:
   wasko/branches/2.0/jmdweb/controllers/case.py
Log:
* jmdweb/controllers/case.py (CaseController.new): Deleted. Defined in
	mpulsweb now.
* jmdweb/controllers/case.py (CaseController.select): Deleted. Defined
	in mpulsweb now


Modified: wasko/branches/2.0/jmdweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/case.py	2010-03-25 09:06:45 UTC (rev 2144)
+++ wasko/branches/2.0/jmdweb/controllers/case.py	2010-03-25 09:08:13 UTC (rev 2145)
@@ -41,7 +41,6 @@
 
 from mpulsweb.lib.base import c, g, h, redirect_to, render, request, session
 from mpulsweb.lib.db import db
-from mpulsweb.lib.dialogs import checkPrivacyStatement 
 from mpulsweb.lib.security import checkRole
 
 from mpulsweb.model.case import SessionCase, Agency
@@ -56,20 +55,7 @@
 
 class CaseController(MpulsCaseController):
 
-    @checkRole(('admin_ka', 'cm_ka', 'pt_dlr'))
-    @checkPrivacyStatement()
-    def select(self, id, confirmed=0):
-        return self.digest(id)
-
-
     @checkRole('cm_ka')
-    def new(self):
-        session_case = SessionCase()
-        session['case'] = session_case
-        session.save()
-        redirect_to('new2')
-
-    @checkRole('cm_ka')
     def newAction(self):
         # TODO: Use htmlfill here!
         log.debug('Test')



More information about the Mpuls-commits mailing list