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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 16 15:32:20 CET 2010


Author: torsten
Date: 2010-02-16 15:32:20 +0100 (Tue, 16 Feb 2010)
New Revision: 1623

Modified:
   wasko/branches/2.0/waskaweb/controllers/CaseBase.py
Log:
* waskaweb/controllers/CaseBase.py (CasebaseController._setState):
Deleted. Not called from anywhere. 


Modified: wasko/branches/2.0/waskaweb/controllers/CaseBase.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/CaseBase.py	2010-02-16 14:31:15 UTC (rev 1622)
+++ wasko/branches/2.0/waskaweb/controllers/CaseBase.py	2010-02-16 14:32:20 UTC (rev 1623)
@@ -57,20 +57,4 @@
         except LoadCaseNotExistsError, err:
             self.showError()
 
-    def _setState(self, id, state):
-        id = self._checkInt(id)
-        state = self._checkInt(state)
-        try:
-            case = self._loadCase(id)
-            case_state = case.getState()
-            case_state.setState(state)
-            session_case = session.get('case')
-            session_state = session_case.getState()
-            session_state.setState(state)
-            session.save()
-            return True
-        except:
-            return False
-
-
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list