summaryrefslogtreecommitdiffstats
path: root/pykolab/conf/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/conf/__init__.py')
-rw-r--r--pykolab/conf/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/pykolab/conf/__init__.py b/pykolab/conf/__init__.py
index fdf723f..9092689 100644
--- a/pykolab/conf/__init__.py
+++ b/pykolab/conf/__init__.py
@@ -48,6 +48,8 @@ class Conf(object):
self.entitlement = None
+ self.changelog = {}
+
try:
from pykolab.conf.entitlement import Entitlement
entitlements = True
@@ -496,8 +498,14 @@ class Conf(object):
if not self.cfg_parser:
self.read_config()
+ #log.debug(_("Obtaining value for section %r, key %r") % (section, key), level=8)
+
if self.cfg_parser.has_option(section, key):
- return self.cfg_parser.get(section,key)
+ try:
+ return self.cfg_parser.get(section, key)
+ except:
+ self.read_config()
+ return self.cfg_parser.get(section, key)
if hasattr(self, "get_%s_%s" % (section,key)):
try: