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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 18 12:40:32 CET 2010


Author: bh
Date: 2010-02-18 12:40:31 +0100 (Thu, 18 Feb 2010)
New Revision: 1659

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/controllers/casedocument.py
Log:
* waskaweb/controllers/casedocument.py (loadCase): Removed. No
longer used.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-18 11:33:28 UTC (rev 1658)
+++ wasko/branches/2.0/ChangeLog	2010-02-18 11:40:31 UTC (rev 1659)
@@ -1,5 +1,10 @@
 2010-02-18  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/controllers/casedocument.py (loadCase): Removed. No
+	longer used.
+
+2010-02-18  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/controllers/casedocument.py
 	(CasedocumentController.overview): Use the _loadCase method
 	instead of the loadCase function.

Modified: wasko/branches/2.0/waskaweb/controllers/casedocument.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/casedocument.py	2010-02-18 11:33:28 UTC (rev 1658)
+++ wasko/branches/2.0/waskaweb/controllers/casedocument.py	2010-02-18 11:40:31 UTC (rev 1659)
@@ -10,8 +10,7 @@
 import mpulsweb.lib.helpers as h
 from mpulsweb.model.document import Document, deleteDocument
 
-from waskaweb.lib.base import BaseController, g, render
-from waskaweb.model.case import LoadCaseNotExistsError
+from waskaweb.lib.base import BaseController, render
 
 
 log = logging.getLogger(__name__)
@@ -35,14 +34,6 @@
 verlieren?"""
 
 
-def loadCase(id):
-    factory = g.case_factory
-    try:
-        return factory.loadById(id)
-    except LoadCaseNotExistsError, err:
-        self.showError()
-
-
 class CasedocumentController(BaseController):
 
     @checkRole(('admin_ka', 'cm_ka'))



More information about the Mpuls-commits mailing list