[Mpuls-commits] r4028 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Oct 26 18:21:03 CEST 2010
Author: torsten
Date: 2010-10-26 18:21:02 +0200 (Tue, 26 Oct 2010)
New Revision: 4028
Modified:
base/trunk/mpulsweb/lib/app_globals.py
Log:
* mpulsweb/lib/app_globals.py: Load list of available databases and safe them as global var.
Modified: base/trunk/mpulsweb/lib/app_globals.py
===================================================================
--- base/trunk/mpulsweb/lib/app_globals.py 2010-10-26 16:20:39 UTC (rev 4027)
+++ base/trunk/mpulsweb/lib/app_globals.py 2010-10-26 16:21:02 UTC (rev 4028)
@@ -38,7 +38,7 @@
from mpulsweb.config.importer import import_overridable_module
from mpulsweb.lib.timelog import setupTimeLogging
-from mpulsweb.lib.config import MpulsAppConfig, MpulsDBMapping
+from mpulsweb.lib.config import MpulsAppConfig, MpulsDBMapping, MpulsDBList
from mpulsweb.model.annotations import AnnotationsProvider
@@ -75,10 +75,13 @@
'default_dbmapping.json')
tagging_file = filename_from_config('mpuls.app.tagging',
'default_tagging.xml')
+ dblist_file = filename_from_config('mpuls.app.dblist',
+ 'default_dblist.json')
self.config_path = os.path.dirname(config_file)
self.mpuls_config = MpulsAppConfig(config_file)
self.mpuls_dbmapping = MpulsDBMapping(mapping_file)
+ self.mpuls_dblist = MpulsDBList(dblist_file)
# Load formed from defined location. If no location is defined. Take
# the default which is the formed dir under public.
More information about the Mpuls-commits
mailing list