summaryrefslogtreecommitdiffstats
path: root/pykolab/__init__.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-04-11 11:52:29 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-04-11 11:52:29 +0100
commita44f887e6609d46f39c6f4266a175dce1671d2a0 (patch)
tree18da56c093696b9017eec0d62be44ba25339c797 /pykolab/__init__.py
parentde8818dd793a1b1caff98be0ff03fc3e032f9f92 (diff)
downloadpykolab-a44f887e6609d46f39c6f4266a175dce1671d2a0.tar.gz
Pull out auth and conf from becoming multi-instance all over the place. One of each suffices.
Clean up imap module, along with making the imap.cyrus module work better
Diffstat (limited to 'pykolab/__init__.py')
-rw-r--r--pykolab/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pykolab/__init__.py b/pykolab/__init__.py
index 3f751b9..9a36ef8 100644
--- a/pykolab/__init__.py
+++ b/pykolab/__init__.py
@@ -17,6 +17,12 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
+"""
+
+ pyKolab, the interface to Kolab Groupware Solution management in Python.
+
+"""
+
import logging
import shutil
import sys
@@ -26,6 +32,9 @@ from pykolab.logger import Logger
logging.setLoggerClass(Logger)
def getLogger(name):
+ """
+ Return the correct logger class.
+ """
logging.setLoggerClass(Logger)
log = logging.getLogger(name=name)
return log
@@ -36,3 +45,9 @@ conf = Conf()
def getConf():
return conf
+
+from pykolab.auth import Auth
+auth = Auth()
+
+from pykolab.imap import IMAP
+imap = IMAP()