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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 3 08:43:29 CET 2010


Author: torsten
Date: 2010-02-03 08:43:28 +0100 (Wed, 03 Feb 2010)
New Revision: 1190

Modified:
   wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newAction): Do not call
__init_case. It does nothing usefull in this context.
* waskaweb/controllers/case.py (CaseController.neuaufnahmeAction): Do
not call __init_case. It does nothing usefull in this context.
* waskaweb/controllers/case.py (CaseController.wiederaufnahmeAction): Do
not call __init_case. It does nothing usefull in this context.
* waskaweb/controllers/case.py (CaseController.__init_case): Deleted
not called from anywhere now.


Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-03 07:29:11 UTC (rev 1189)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-03 07:43:28 UTC (rev 1190)
@@ -260,12 +260,6 @@
     def index(self):
         redirect_to(controller="/case_overview")
 
-    def __init_case(self, id):
-        '''Return a case object'''
-        case = load_case(id)
-        self.navigation = session.get('navigation.tree')
-        return case
-
     @checkRole(('admin_ka', 'cm_ka', 'pt_dlr'))
     @checkPrivacyStatement()
     def select(self, id, confirmed=0):
@@ -369,8 +363,6 @@
                 if form_result.get('statement_signed'):
                     statement.sign()
 
-                self.__init_case(case.id)
-
             except formencode.Invalid, error:
                 log.debug("Invalid form data: %r", error)
                 c.form_result = error.value
@@ -408,8 +400,6 @@
                 if signed:
                     statement.sign()
 
-                self.__init_case(case.id)
-
                 g.formedTree.setDataNoChecks(simulation, case.id)
 
                 del session['signed']
@@ -482,8 +472,6 @@
                 if signed:
                     statement.sign()
 
-                self.__init_case(case.id)
-
                 g.formedTree.setDataNoChecks(simulation, case.id)
 
                 del session['signed']



More information about the Mpuls-commits mailing list