[Mpuls-commits] r2144 - wasko/branches/2.0/mpulsweb/controllers

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


Author: torsten
Date: 2010-03-25 10:06:45 +0100 (Thu, 25 Mar 2010)
New Revision: 2144

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case.py
Log:
* mpulsweb/controllers/case.py (CaseController.new): Copied from jmdweb 
* mpulsweb/controllers/case.py (CaseController.select): Copied from
	jmdweb.


Modified: wasko/branches/2.0/mpulsweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case.py	2010-03-25 09:06:26 UTC (rev 2143)
+++ wasko/branches/2.0/mpulsweb/controllers/case.py	2010-03-25 09:06:45 UTC (rev 2144)
@@ -83,13 +83,6 @@
     def select(self, id, confirmed=0):
         return self.digest(id)
 
-    @checkRole('cm')
-    def new(self):
-        session_case = SessionCase()
-        session['case'] = session_case
-        session.save()
-        redirect_to('new2')
-
     @checkRole(('admin', 'cm', 'pt_dlr'))
     def digest(self, id):
         id = self._checkInt(id)
@@ -279,6 +272,13 @@
     # 
 
     @checkRole('cm')
+    def new(self):
+        session_case = SessionCase()
+        session['case'] = session_case
+        session.save()
+        redirect_to('new2')
+
+    @checkRole('cm')
     def new2(self):
         c.case = session.get('case')
         return render('/casemanagement/new.mako')



More information about the Mpuls-commits mailing list