[Mpuls-commits] r3464 - in wasko/trunk: . waskoweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 27 12:38:05 CEST 2010


Author: bh
Date: 2010-08-27 12:38:05 +0200 (Fri, 27 Aug 2010)
New Revision: 3464

Removed:
   wasko/trunk/waskoweb/lib/app_globals.py
Modified:
   wasko/trunk/ChangeLog
Log:
* waskoweb/lib/app_globals.py: Removed.  The base version includes
all of the required functionality now.


Modified: wasko/trunk/ChangeLog
===================================================================
--- wasko/trunk/ChangeLog	2010-08-27 10:31:42 UTC (rev 3463)
+++ wasko/trunk/ChangeLog	2010-08-27 10:38:05 UTC (rev 3464)
@@ -1,3 +1,8 @@
+2010-08-27  Bernhard Herzog  <bh at intevation.de>
+
+	* waskoweb/lib/app_globals.py: Removed.  The base version includes
+	all of the required functionality now.
+
 2010-08-26 Roland Geider <roland.geider at intevation.de>
 
 	* waskoweb/controllers/formularpage.py,

Deleted: wasko/trunk/waskoweb/lib/app_globals.py
===================================================================
--- wasko/trunk/waskoweb/lib/app_globals.py	2010-08-27 10:31:42 UTC (rev 3463)
+++ wasko/trunk/waskoweb/lib/app_globals.py	2010-08-27 10:38:05 UTC (rev 3464)
@@ -1,29 +0,0 @@
-"""Extend the MPuls app_globals for WASKO"""
-
-from mpulsweb.lib.app_globals import Globals as MPulsGlobals
-
-from waskoweb.model.case import Case, CaseFactory
-from waskoweb.lib.search import CaseSearch
-
-
-class Globals(MPulsGlobals):
-
-    """This Globals class extends the base class with the following objects:
-
-       case_factory -- The factory to use to instantiate Case objects
-    """
-
-    def __init__(self):
-        MPulsGlobals.__init__(self)
-        self._init_case()
-
-    def _init_case(self):
-        fields = self.mpuls_config.get("case", "fields")
-        print "1"
-        Case.set_fields(fields)
-        print "2"
-        self.case_factory = CaseFactory(Case)
-        print "3"
-        self.case_search  = CaseSearch
-        print "4"
-        self.case = Case



More information about the Mpuls-commits mailing list