From 263c8bfab4e444bc97b1ff92ffa097642e710493 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 26 Sep 2010 14:36:44 +0200 Subject: processing some plugins in collector --- module/web/settings.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'module/web') diff --git a/module/web/settings.py b/module/web/settings.py index 756554deb..515117860 100644 --- a/module/web/settings.py +++ b/module/web/settings.py @@ -24,9 +24,7 @@ sys.path.append(os.path.join(PYLOAD_DIR, "module")) import InitHomeDir sys.path.append(pypath) - -from module.ConfigParser import ConfigParser -config = ConfigParser() +config = None #os.chdir(PROJECT_DIR) # UNCOMMENT FOR LOCALE GENERATION #DEBUG = config.get("general","debug") @@ -36,10 +34,14 @@ try: if not module.web.ServerThread.core: raise Exception PYLOAD = module.web.ServerThread.core.server_methods + config = module.web.ServerThread.core.config except: import xmlrpclib ssl = "" + from module.ConfigParser import ConfigParser + config = ConfigParser() + if config.get("ssl", "activated"): ssl = "s" -- cgit v1.2.3