[Mpuls-commits] r5724 - base/trunk/mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Dec 16 15:31:53 CET 2011
Author: bricks
Date: 2011-12-16 15:31:52 +0100 (Fri, 16 Dec 2011)
New Revision: 5724
Modified:
base/trunk/mpulsweb/lib/app_globals.py
Log:
Be able to use a app specific config
Add a _get_config method in Globals to be able to
overwrite the config class in a mpuls application.
Modified: base/trunk/mpulsweb/lib/app_globals.py
===================================================================
--- base/trunk/mpulsweb/lib/app_globals.py 2011-12-16 13:42:06 UTC (rev 5723)
+++ base/trunk/mpulsweb/lib/app_globals.py 2011-12-16 14:31:52 UTC (rev 5724)
@@ -111,7 +111,7 @@
self.mpuls_ini.readfp(open(path))
self.config_path = os.path.dirname(config_file)
- self.mpuls_config = MpulsAppConfig(config_file)
+ self.mpuls_config = self._get_config(config_file)
self.mpuls_dbmapping = MpulsDBMapping(mapping_file)
self.mpuls_dblist = MpulsDBList(dblist_file)
@@ -189,3 +189,6 @@
self.eval_search = search_module.EvaluationSearch(
self.agency_factory.get_search_retrieve_fields(),
self.agency_factory.get_search_match_fields())
+
+ def _get_config(self, filename):
+ return MpulsAppConfig(filename)
More information about the Mpuls-commits
mailing list