[Mpuls-commits] r1227 - wasko/branches/2.0/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 4 11:05:51 CET 2010


Author: torsten
Date: 2010-02-04 11:05:51 +0100 (Thu, 04 Feb 2010)
New Revision: 1227

Modified:
   wasko/branches/2.0/waskaweb/lib/app_globals.py
Log:
* waskaweb/lib/app_globals.py (Globals.__init__): Do not set modul var for db connection anymore.


Modified: wasko/branches/2.0/waskaweb/lib/app_globals.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/app_globals.py	2010-02-04 09:59:06 UTC (rev 1226)
+++ wasko/branches/2.0/waskaweb/lib/app_globals.py	2010-02-04 10:05:51 UTC (rev 1227)
@@ -78,17 +78,6 @@
             # file and parse errors.
             log.exception("Could not open helpfile %r", annotation_file)
 
-        # data for database connections
-        host   = config.get('mpuls.db.host')
-        port   = config.get('mpuls.db.port')
-        dbname = config.get('mpuls.db.database')
-        user   = config.get('mpuls.db.user')
-
-        if not host   is None: security.HOST   = host
-        if not port   is None: security.PORT   = int(port)
-        if not dbname is None: security.DBNAME = u"%s" % dbname
-        if not user   is None: security.USER   = u"%s" % user
-
         # set time logging
         time_host = config.get('time_host')
         time_port = config.get('time_port')



More information about the Mpuls-commits mailing list