changeset 466:01880aa8ea2d

twisted plugin: fixes the parsing of directory parameter
author souliane <souliane@mailoo.org>
date Mon, 09 Jun 2014 20:37:28 +0200
parents 33ec27ef4b6a
children 97c72fe4a5f2
files src/twisted/plugins/libervia_server.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/twisted/plugins/libervia_server.py	Sun Jun 08 16:59:48 2014 +0200
+++ b/src/twisted/plugins/libervia_server.py	Mon Jun 09 20:37:28 2014 +0200
@@ -32,6 +32,7 @@
 from libervia.server.constants import Const as C
 from sat.core import log_config
 log_config.satConfigure(C.LOG_BACKEND_TWISTED, C)
+from sat.tools.config import getConfig
 
 from zope.interface import implements
 
@@ -68,7 +69,7 @@
             # index is only used to not modify the loop variable "param"
             name = param[0]
             try:
-                value = config.get('libervia', name)
+                value = getConfig(config, 'libervia', name)
                 self.optParameters[index][2] = param[4](value)
             except (NoSectionError, NoOptionError):
                 pass