summaryrefslogtreecommitdiffstats
path: root/pykolab/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/__init__.py')
-rw-r--r--pykolab/__init__.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/pykolab/__init__.py b/pykolab/__init__.py
index 22bf88e..3f0b520 100644
--- a/pykolab/__init__.py
+++ b/pykolab/__init__.py
@@ -26,6 +26,7 @@
import logging
import shutil
import sys
+import threading
import traceback
from pykolab.logger import Logger
@@ -44,10 +45,11 @@ from pykolab.conf import Conf
conf = Conf()
def getConf():
- return conf
+ _data = threading.local()
+ if hasattr(_data, 'conf'):
+ log.debug(_("Returning thread local configuration"))
+ return _data.conf
-from pykolab.auth import Auth
-auth = Auth()
+ return conf
-from pykolab.imap import IMAP
-imap = IMAP()
+import base