[Mpuls-commits] r2143 - wasko/branches/2.0/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 25 10:06:27 CET 2010
Author: torsten
Date: 2010-03-25 10:06:26 +0100 (Thu, 25 Mar 2010)
New Revision: 2143
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:01:35 UTC (rev 2142)
+++ wasko/branches/2.0/mpulsweb/controllers/case.py 2010-03-25 09:06:26 UTC (rev 2143)
@@ -79,6 +79,18 @@
redirect_to(controller="/case_overview")
@checkRole(('admin', 'cm', 'pt_dlr'))
+ @checkPrivacyStatement()
+ 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)
case = self.init_case(id)
More information about the Mpuls-commits
mailing list