[Mpuls-commits] r1128 - in wasko/branches/2.0: . waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 12:28:38 CET 2010


Author: bh
Date: 2010-02-02 12:28:33 +0100 (Tue, 02 Feb 2010)
New Revision: 1128

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newAction)
(CaseController.neuaufnahmeAction)
(CaseController.wiederaufnahmeAction): __init_case calls load_case
so don't call load_case immediately after calling self.__init_case
just for the side-effects.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-02 11:21:48 UTC (rev 1127)
+++ wasko/branches/2.0/ChangeLog	2010-02-02 11:28:33 UTC (rev 1128)
@@ -1,5 +1,13 @@
 2010-02-02  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/controllers/case.py (CaseController.newAction)
+	(CaseController.neuaufnahmeAction)
+	(CaseController.wiederaufnahmeAction): __init_case calls load_case
+	so don't call load_case immediately after calling self.__init_case
+	just for the side-effects.
+
+2010-02-02  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/controllers/case.py (CaseController.newAction): Remove
 	some debug prints and turn some of them into log.debug calls.
 

Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 11:21:48 UTC (rev 1127)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 11:28:33 UTC (rev 1128)
@@ -397,7 +397,6 @@
                     statement.sign()
 
                 self.__init_case(case.id)
-                load_case(case.id)
 
             except formencode.Invalid, error:
                 log.debug("Invalid form data: %r", error)
@@ -437,7 +436,6 @@
                     statement.sign()
 
                 self.__init_case(case.id)
-                load_case(case.id)
 
                 g.formedTree.setDataNoChecks(simulation, case.id)
 
@@ -512,7 +510,6 @@
                     statement.sign()
 
                 self.__init_case(case.id)
-                load_case(case.id)
 
                 g.formedTree.setDataNoChecks(simulation, case.id)
 



More information about the Mpuls-commits mailing list